projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dd34c2
)
oomd: print dry run output at INFO level
author
Jade Lovelace
<jadel@mercury.com>
Wed, 7 Dec 2022 19:14:30 +0000
(11:14 -0800)
committer
Yu 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
patch
|
blob
|
history
diff --git
a/src/oom/oomd-util.c
b/src/oom/oomd-util.c
index 7291e044eb1fd369f604791ed9119e55f7e4b716..f97b771c5053cd681ce653fc0f8ad06fae69aa93 100644
(file)
--- a/
src/oom/oomd-util.c
+++ b/
src/oom/oomd-util.c
@@
-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;
}