dracut
dracut copied to clipboard
Use log level indicator in console output
In the terminal an error message is not distinguishable from an info message.
Maybe:
--- a/dracut-logger.sh
+++ b/dracut-logger.sh
@@ -323,7 +323,7 @@ _do_dlog() {
local msg="$*"
local lmsg="$lvlc: $*"
- (( $lvl <= $stdloglvl )) && printf -- 'dracut: %s\n' "$msg" >&2
+ (( $lvl <= $stdloglvl )) && printf -- 'dracut[%s]: %s\n' "$lvlc" "$msg" >&2
if (( $lvl <= $sysloglvl )); then
if [[ "$_dlogfd" ]]; then