]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/logs-show.c
tree-wide: add DEBUG_LOGGING macro that checks whether debug logging is on (#7645)
[thirdparty/systemd.git] / src / shared / logs-show.c
index afc3dcd21905a79d17beb0924d477072ddf07167..af7f8f345e196a138c6c1bd13eb2b8c213658c99 100644 (file)
@@ -1392,7 +1392,7 @@ int show_journal_by_unit(
         if (r < 0)
                 return log_error_errno(r, "Failed to add unit matches: %m");
 
-        if (_unlikely_(log_get_max_level() >= LOG_DEBUG)) {
+        if (DEBUG_LOGGING) {
                 _cleanup_free_ char *filter;
 
                 filter = journal_make_match_string(j);