mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-09 15:10:27 +00:00
Log file doesn't need to exist before logger can log to it
This commit is contained in:
parent
444be2c060
commit
558279e009
@ -27,7 +27,7 @@ class logger(object):
|
||||
# set request requests module log level
|
||||
logging.getLogger("requests").setLevel(logging.CRITICAL)
|
||||
|
||||
if self.logfile and os.path.isfile(self.logfile):
|
||||
if self.logfile:
|
||||
# define handler to log into file
|
||||
file_log_handler = logging.FileHandler(self.logfile)
|
||||
logger.addHandler(file_log_handler)
|
||||
|
Loading…
Reference in New Issue
Block a user