[openrtm-commit:02456] r798 - in trunk/OpenRTM-aist-Python/OpenRTM_aist: . ext/logger/fluentbit_stream
openrtm @ openrtm.org
openrtm @ openrtm.org
2017年 2月 17日 (金) 15:25:51 JST
Author: miyamoto
Date: 2017-02-17 15:25:51 +0900 (Fri, 17 Feb 2017)
New Revision: 798
Modified:
trunk/OpenRTM-aist-Python/OpenRTM_aist/LogstreamFile.py
trunk/OpenRTM-aist-Python/OpenRTM_aist/ext/logger/fluentbit_stream/FluentBit.py
Log:
[compat,bugfix] Modified LogstreamFile.py and FluentBit.py
Modified: trunk/OpenRTM-aist-Python/OpenRTM_aist/LogstreamFile.py
===================================================================
--- trunk/OpenRTM-aist-Python/OpenRTM_aist/LogstreamFile.py 2017-02-17 06:01:45 UTC (rev 797)
+++ trunk/OpenRTM-aist-Python/OpenRTM_aist/LogstreamFile.py 2017-02-17 06:25:51 UTC (rev 798)
@@ -127,9 +127,10 @@
for f in files:
self.addHandler(f)
-
+
if len(self.handlers) == 0:
return False
+
return True
@@ -297,6 +298,7 @@
def shutdown(self):
for h in self.handlers:
logging.Handler.close(h)
+ self.logger.removeHandler(h)
LogstreamFile.s_logger = None
self.handlers = []
Modified: trunk/OpenRTM-aist-Python/OpenRTM_aist/ext/logger/fluentbit_stream/FluentBit.py
===================================================================
--- trunk/OpenRTM-aist-Python/OpenRTM_aist/ext/logger/fluentbit_stream/FluentBit.py 2017-02-17 06:01:45 UTC (rev 797)
+++ trunk/OpenRTM-aist-Python/OpenRTM_aist/ext/logger/fluentbit_stream/FluentBit.py 2017-02-17 06:25:51 UTC (rev 798)
@@ -374,6 +374,7 @@
def shutdown(self):
for h in self.handlers:
logging.Handler.close(h)
+ self.logger.removeHandler(h)
FluentBit.s_logger = None
return True
openrtm-commit メーリングリストの案内