Commit ce3ef7d3 authored by Sigmund Augdal's avatar Sigmund Augdal

Megabytes are 1024**2 not **3

parent 0e880a86
......@@ -40,7 +40,7 @@ class LogStashFormatter(logging.Formatter):
def setupLogfile(logfile):
handler = logging.handlers.RotatingFileHandler(logfile, maxBytes=10*1024**3,
handler = logging.handlers.RotatingFileHandler(logfile, maxBytes=10*1024**2,
backupCount=5)
formatter = LogStashFormatter()
handler.setFormatter(formatter)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment