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:48 UTC

[1/2] ambari git commit: AMBARI-13307. Agent instance memory footprint likely gradually growing (aonishuk)

Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 9e0ca3eab -> 13f808e3c
  refs/heads/trunk a125f978c -> b8be80b08


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/b8be80b0
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/b8be80b0
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/b8be80b0

Branch: refs/heads/trunk
Commit: b8be80b08cf50436fb1285b5deaa6a4ca8fe8739
Parents: a125f97
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Mon Oct 5 12:12:34 2015 +0300
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Mon Oct 5 12:12:34 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/b8be80b0/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)


[2/2] ambari git commit: AMBARI-13307. Agent instance memory footprint likely gradually growing (aonishuk)

Posted by ao...@apache.org.
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)