You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ao...@apache.org on 2015/09/01 17:03:01 UTC

[2/2] ambari git commit: AMBARI-12962. New ambari-agent logging infra makes it difficult to attach a log4j appender (aonishuk)

AMBARI-12962. New ambari-agent logging infra makes it difficult to attach a log4j appender (aonishuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/864a50f0
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/864a50f0
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/864a50f0

Branch: refs/heads/branch-2.1
Commit: 864a50f06eb9a54fd2d2561fff65372f822cc9de
Parents: 052fe33
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Tue Sep 1 18:02:52 2015 +0300
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Tue Sep 1 18:02:52 2015 +0300

----------------------------------------------------------------------
 ambari-agent/src/main/python/ambari_agent/main.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/864a50f0/ambari-agent/src/main/python/ambari_agent/main.py
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/python/ambari_agent/main.py b/ambari-agent/src/main/python/ambari_agent/main.py
index 3c2933e..fb5b4b1 100644
--- a/ambari-agent/src/main/python/ambari_agent/main.py
+++ b/ambari-agent/src/main/python/ambari_agent/main.py
@@ -45,7 +45,7 @@ from ambari_commons import shell
 import HeartbeatHandlers
 from HeartbeatHandlers import bind_signal_handlers
 from ambari_commons.constants import AMBARI_SUDO_BINARY
-logger = logging.getLogger(__name__)
+logger = logging.getLogger()
 
 formatstr = "%(levelname)s %(asctime)s %(filename)s:%(lineno)d - %(message)s"
 agentPid = os.getpid()