Skip to content

Commit

Permalink
logging crashes if the directory doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
poettler-ric committed Jul 8, 2015
1 parent 35094ae commit f08dc97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def defPaths():

format = '%(asctime)s %(name)-24s %(levelname)-8s %(message)s'
logging.basicConfig(format=format, level=logLevel)
__createSavePath()
handler = logging.handlers.RotatingFileHandler(os.path.join(savePath, "log.txt"), maxBytes=1000000, backupCount=3)
formatter = logging.Formatter(format)
handler.setFormatter(formatter)
Expand Down

0 comments on commit f08dc97

Please sign in to comment.