Explorar o código

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

Andrew Onishuk %!s(int64=10) %!d(string=hai) anos
pai
achega
35bc58de3e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 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()