]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
oomd: print dry run output at INFO level
authorJade Lovelace <jadel@mercury.com>
Wed, 7 Dec 2022 19:14:30 +0000 (11:14 -0800)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 8 Dec 2022 00:26:57 +0000 (09:26 +0900)
Otherwise, the dry run isn't much use since it would be logged at debug
and not seen.

src/oom/oomd-util.c

index 7291e044eb1fd369f604791ed9119e55f7e4b716..f97b771c5053cd681ce653fc0f8ad06fae69aa93 100644 (file)
@@ -242,7 +242,7 @@ int oomd_cgroup_kill(const char *path, bool recurse, bool dry_run) {
                 if (r < 0)
                         return r;
 
-                log_debug("oomd dry-run: Would have tried to kill %s with recurse=%s", cg_path, true_false(recurse));
+                log_info("oomd dry-run: Would have tried to kill %s with recurse=%s", cg_path, true_false(recurse));
                 return 0;
         }