mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Update LOGGER initialization to use environment variable for log level in backup utils
This commit is contained in:
parent
f97db771d1
commit
3631f3951b
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ from Database import Database # type: ignore
|
|||
from logger import setup_logger # type: ignore
|
||||
from model import Base # type: ignore
|
||||
|
||||
LOGGER = setup_logger("BACKUP", "INFO")
|
||||
LOGGER = setup_logger("BACKUP", getenv("LOG_LEVEL", "INFO"))
|
||||
|
||||
DB_STRING_RX = re_compile(r"^(?P<database>(mariadb|mysql)(\+pymysql)?|sqlite(\+pysqlite)?|postgresql(\+psycopg)?):/+(?P<path>/[^\s]+)")
|
||||
BACKUP_DIR = Path(getenv("BACKUP_DIRECTORY", "/var/lib/bunkerweb/backups"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue