dracut icon indicating copy to clipboard operation
dracut copied to clipboard

Use log level indicator in console output

Open haraldh opened this issue 4 years ago • 0 comments

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

haraldh avatar Feb 08 '21 12:02 haraldh