Manage Content Loader as Herd/DM tool
Lower log size cap
@@ -29,7 +29,7 @@ def get_logger(name):
log_format = logging.Formatter("%(asctime)s - %(module)s - Line %(lineno)d - %(levelname)s \n%(message)s",
"%Y-%m-%d %H:%M:%S")
- log_handler = logging.handlers.RotatingFileHandler('debug.log', mode='a', maxBytes=1024 * 1024)
+ log_handler = logging.handlers.RotatingFileHandler('debug.log', mode='a', maxBytes=50 * 1024, backupCount=1)
log_handler.setFormatter(log_format)
stream_handler = logging.StreamHandler(sys.stdout)
