Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(417)

Unified Diff: laptop-mode-tools_1.52/usr/sbin/laptop_mode

Issue 4708005: laptop-mode-tools: only log VERBOSE msgs to syslog when DEBUG is enabled (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/laptop-mode-tools.git@master
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: laptop-mode-tools_1.52/usr/sbin/laptop_mode
diff --git a/laptop-mode-tools_1.52/usr/sbin/laptop_mode b/laptop-mode-tools_1.52/usr/sbin/laptop_mode
index f4a4004e6a91a531acb3bf80cce9ef27caf4cea5..07fe87b183b4fb354a03b653a845ed449a94a881 100755
--- a/laptop-mode-tools_1.52/usr/sbin/laptop_mode
+++ b/laptop-mode-tools_1.52/usr/sbin/laptop_mode
@@ -160,7 +160,9 @@ if [ x$LOG_TO_SYSLOG = x1 ]; then
elif [ "$1" = "ERR" ]; then
logger -p $SYSLOG_FACILITY.err -t laptop-mode "$2";
elif [ "$1" = "VERBOSE" ]; then
- logger -p $SYSLOG_FACILITY.debug -t laptop-mode "$2";
+ if [ "$DEBUG" = 1 ]; then
+ logger -p $SYSLOG_FACILITY.debug -t laptop-mode "$2";
+ fi
else
logger -p $SYSLOG_FACILITY.notice -t laptop-mode "$2";
fi
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698