function wprint

NAME [edit section]

wprint

SYNOPSIS [edit section]

DESCRIPTION [edit section]

This function outputs the message, if the log level is set to 'warning' or anything lower, for the current area of Fuego test execution. This function should be used to indicate a non-fatal condition that may require user consideration or action.

See FUEGO_LOGLEVELS to see how the log level may be set.

Any shell variables can be output as part of the message, as well as any information that might be helpful to address the warning.

This routine will add an extra prefix to the message, to draw attention to this message in the console log for the test run. The prefix is: "### WARNING:".

EXAMPLES [edit section]

Here is a sample invocation:

This would output:

### WARNING: Something is not right...

ENVIRONMENT and ARGUMENTS [edit section]

This function is controlled by the value of FUEGO_LOGLEVELS.

RETURN [edit section]

Returns 0

SOURCE [edit section]

Located in scripts/common.sh

SEE ALSO [edit section]