ShahriyarR / MySQL-AutoXtraBackup

MySQL-AutoXtraBackup commandline tool written in Python 3 based on Percona XtraBackup
https://autoxtrabackup.azepug.az/
MIT License
140 stars 79 forks source link

config 'log_level' check fails if 'log' absent in autoxtrabackup.cnf #358

Closed gitmstoute closed 4 years ago

gitmstoute commented 5 years ago

If 'log_level' doesn't exist in the GeneralClass instance config, the execution fails.

autoxtrabackup.cnf
...
#log = DEBUG
...
  File "/home/mstoute/repos/github/MySQL-AutoXtraBackup/autoxtrabackup.py", line 187, in all_procedure
    if config.log_level:
AttributeError: 'GeneralClass' object has no attribute 'log_level'