From 218645659850d4be467fb7cb70d13d6700f18937 Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Thu, 26 Apr 2012 11:50:17 +0200 Subject: [PATCH] Log all external commands execution This logs all external commands in normal (non-debug) mode. This will leak the DRBD secrets, but in any case we do log failed commands, so it's not a significant change. Signed-off-by: Iustin Pop <iustin@google.com> Reviewed-by: Michael Hanselmann <hansmi@google.com> --- lib/utils/process.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/utils/process.py b/lib/utils/process.py index a45875532..8b865d63b 100644 --- a/lib/utils/process.py +++ b/lib/utils/process.py @@ -1,7 +1,7 @@ # # -# Copyright (C) 2006, 2007, 2010, 2011 Google Inc. +# Copyright (C) 2006, 2007, 2010, 2011, 2012 Google Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -192,9 +192,9 @@ def RunCmd(cmd, env=None, output=None, cwd="/", reset_env=False, shell = False if output: - logging.debug("RunCmd %s, output file '%s'", strcmd, output) + logging.info("RunCmd %s, output file '%s'", strcmd, output) else: - logging.debug("RunCmd %s", strcmd) + logging.info("RunCmd %s", strcmd) cmd_env = _BuildCmdEnvironment(env, reset_env) -- GitLab