diff --git a/RELEASE_NOTES b/RELEASE_NOTES index 8ce848ded702713a7202515a45d960dea61811e5..8f426d938942cb8c2502b47c0936fdcb12ba982d 100644 --- a/RELEASE_NOTES +++ b/RELEASE_NOTES @@ -30,6 +30,9 @@ HIGHLIGHTS -- The example systemd unit files have been changed to the "simple" type of operation, and the daemon will now run in the foreground within systemd instead of daemonizing itself. + -- Log messages enabled by the various DebugFlags have been overhauled, and + will all print at the verbose() level, and prepend the flag name that is + associated with a given log message. CONFIGURATION FILE CHANGES (see man appropriate man page for details) ===================================================================== diff --git a/doc/man/man5/slurm.conf.5 b/doc/man/man5/slurm.conf.5 index 6958af8d76c830314831826ae0d176c0faa88bc2..52555e67f439280b236b3ce5a52593dba1ce6b9a 100644 --- a/doc/man/man5/slurm.conf.5 +++ b/doc/man/man5/slurm.conf.5 @@ -551,9 +551,9 @@ The default value is "cred/munge" and is the recommended. \fBDebugFlags\fR Defines specific subsystems which should provide more detailed event logging. Multiple subsystems can be specified with comma separators. -Most DebugFlags will result in verbose logging for the identified subsystems -and could impact performance. -Valid subsystems available today (with more to come) include: +Most DebugFlags will result in verbose-level logging for the identified +subsystems, and could impact performance. +Valid subsystems available include: .RS .TP 17 \fBAccrue\fR diff --git a/src/common/log.h b/src/common/log.h index 5816512ba0a95fae2bfb18682ebd509e201944fd..39316b959beb2f758a2fe708b24f4d3ab06cc124 100644 --- a/src/common/log.h +++ b/src/common/log.h @@ -338,7 +338,8 @@ void spank_log(const char *, ...) __attribute__ ((format (printf, 1, 2))); #define log_flag(flag, fmt, ...) \ do { \ if (slurmctld_conf.debug_flags & DEBUG_FLAG_##flag) \ - log_var(LOG_LEVEL_INFO, fmt, ##__VA_ARGS__); \ + log_var(LOG_LEVEL_VERBOSE, #flag ": " fmt, \ + ##__VA_ARGS__); \ } while (0) #endif /* !_LOG_H */