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/10/05 11:12:49 UTC
[2/2] ambari git commit: AMBARI-13307. Agent instance memory
footprint likely gradually growing (aonishuk)
AMBARI-13307. Agent instance memory footprint likely gradually growing (aonishuk)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/13f808e3
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/13f808e3
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/13f808e3
Branch: refs/heads/branch-2.1
Commit: 13f808e3cb7bd27af2781757e97bfd8ea540308c
Parents: 9e0ca3e
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Mon Oct 5 12:12:36 2015 +0300
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Mon Oct 5 12:12:36 2015 +0300
----------------------------------------------------------------------
ambari-common/src/main/python/resource_management/core/logger.py | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/13f808e3/ambari-common/src/main/python/resource_management/core/logger.py
----------------------------------------------------------------------
diff --git a/ambari-common/src/main/python/resource_management/core/logger.py b/ambari-common/src/main/python/resource_management/core/logger.py
index 7642c6d..0ea34ff 100644
--- a/ambari-common/src/main/python/resource_management/core/logger.py
+++ b/ambari-common/src/main/python/resource_management/core/logger.py
@@ -37,6 +37,10 @@ class Logger:
@staticmethod
def initialize_logger(name='resource_management', logging_level=logging.INFO, format='%(asctime)s - %(message)s'):
# set up logging (two separate loggers for stderr and stdout with different loglevels)
+
+ if Logger.logger:
+ return
+
logger = logging.getLogger(name)
logger.setLevel(logging_level)
formatter = logging.Formatter(format)