aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'grs/Log.py')
-rw-r--r--grs/Log.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/grs/Log.py b/grs/Log.py
index a7ac1a3..3a8ec8a 100644
--- a/grs/Log.py
+++ b/grs/Log.py
@@ -21,8 +21,8 @@ class Log(Rotator):
current_time = datetime.datetime.now(datetime.timezone.utc)
unix_timestamp = current_time.timestamp()
msg = '[%f] %s' % (unix_timestamp, msg)
- with open(self.logfile, 'a') as f:
- f.write('%s\n' % msg)
+ with open(self.logfile, 'a') as _file:
+ _file.write('%s\n' % msg)
def rotate_logs(self, upper_limit=20):