We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 108ce7c commit 15f9e8cCopy full SHA for 15f9e8c
alarmcode/logs.py
@@ -78,8 +78,8 @@ def trimLogFile(self, lines):
78
""" Trims the log file in an interval of 24 hours to 1000 lines """
79
80
# lines = 1000 # Number of lines of logs to keep
81
- repeat_every_n_sec = 86400 # 24 Hours
82
- while True and lines is None and lines > 0:
+ repeat_every_n_sec = 3600 # 1 Hours
+ while True and lines > 0:
83
with open(self.logfile, 'r') as f:
84
data = f.readlines()
85
with open(self.logfile, 'w') as f:
0 commit comments