FrontPage 

Fuego wiki

Login or create account

function dprint in split format

NAME [edit section]

= NAME =
dprint

SYNOPSIS [edit section]

= SYNOPSIS =
 * dprint "message"

DESCRIPTION [edit section]

FUEGO_LOGLEVELS to see how the log level may be set.
= DESCRIPTION =
This function outputs the message, if the log level is set to 'debug'
for the current area of Fuego test execution.  See [[FUEGO_LOGLEVELS]]
to see how the log level may be set.
Any shell variable can be output as part of the message, as well as any information that might be helpful to debug the test execution.
Any shell variable can be output as part of the message, as
well as any information that might be helpful to debug the test execution.
This function will output the message, along with a prefix with the word DEBUG, and indicating the current execution phase.
This function will output the message, along with a prefix with the word
DEBUG, and indicating the current execution phase.

EXAMPLES [edit section]

= EXAMPLES =
Here is a sample invocation:
{{{#!YellowBox
    dprint "The board is currently: $NODE_NAME"
}}}
If this were in the 'test_deploy' function, this might output the following, during test execution:
If this were in the 'test_deploy' function, this
might output the following, during test execution:
 
DEBUG(deploy): The board is currently: raspberrypi
}}}
{{{ 
DEBUG(deploy): The board is currently: raspberrypi
}}}

ENVIRONMENT and ARGUMENTS [edit section]

= ENVIRONMENT and ARGUMENTS =
This function is controlled by the value of FUEGO_LOGLEVELS.

RETURN [edit section]

= RETURN =
Returns 0

SOURCE [edit section]

= SOURCE =
Located in ''scripts/common.sh''

SEE ALSO [edit section]

vprint, iprint, wprint, eprint
= SEE ALSO =
 * [[function_vprint|vprint]], [[function_iprint|iprint]], [[function_wprint|wprint]], [[function_eprint|eprint]]
TBWiki engine 1.8.3 by Tim Bird