Skip to content

Commit c5ebdf0

Browse files
committed
Absolute -> Relative path for logs
1 parent 821a6e1 commit c5ebdf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
sh = logging.StreamHandler()
4949
# add a rotating handler
50-
fh = logging.handlers.RotatingFileHandler('/home/pi/coderbot/logs/coderbot.log', maxBytes=1000000, backupCount=5)
50+
fh = logging.handlers.RotatingFileHandler('./logs/coderbot.log', maxBytes=1000000, backupCount=5)
5151
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
5252
sh.setFormatter(formatter)
5353
fh.setFormatter(formatter)

0 commit comments

Comments
 (0)