ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject [1/2] ambari git commit: Revert "Revert "AMBARI-13307. Agent instance memory footprint likely gradually growing (aonishuk)""
Date Thu, 08 Oct 2015 08:58:52 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 7ac3e529f -> 8ef722dc3


Revert "Revert "AMBARI-13307. Agent instance memory footprint likely gradually growing (aonishuk)""

This reverts commit 68395ded0d2f6174b9f13a6b6ad0c800308b7d74.


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

Branch: refs/heads/branch-2.1
Commit: dee7089b1cbec527c56bdd8925fae9e421ef7b10
Parents: 7ac3e52
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Thu Oct 8 11:58:20 2015 +0300
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Thu Oct 8 11:58:20 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/dee7089b/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)


Mime
View raw message