Browse Source

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

Andrew Onishuk 10 years ago
parent
commit
35bc58de3e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ambari-agent/src/main/python/ambari_agent/main.py

+ 1 - 1
ambari-agent/src/main/python/ambari_agent/main.py

@@ -45,7 +45,7 @@ from ambari_commons import shell
 import HeartbeatHandlers
 import HeartbeatHandlers
 from HeartbeatHandlers import bind_signal_handlers
 from HeartbeatHandlers import bind_signal_handlers
 from ambari_commons.constants import AMBARI_SUDO_BINARY
 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"
 formatstr = "%(levelname)s %(asctime)s %(filename)s:%(lineno)d - %(message)s"
 agentPid = os.getpid()
 agentPid = os.getpid()