Bug #1177 » 0001-Correct-non-closed-log-files-problem.patch
pipelet/environment.py | ||
---|---|---|
402 | 402 |
except: |
403 | 403 |
res = [] |
404 | 404 |
self.logger.info("No segment output found, setting seg_output to None") |
405 |
for h in self.logger.handlers: |
|
406 |
h.close() |
|
405 | 407 |
return res |
pipelet/utils.py | ||
---|---|---|
252 | 252 |
|
253 | 253 |
logger = logging.getLogger(name) |
254 | 254 |
logger.setLevel(logging.DEBUG) |
255 |
if (len(logger.handlers) < 4):
|
|
255 |
if (len(logger.handlers) < 2):
|
|
256 | 256 |
formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s") |
257 | 257 |
if filename: |
258 | 258 |
rfhandler = logging.handlers.RotatingFileHandler( |