feat(audiobookss_library): add new logger format
This commit is contained in:
1 parent
22522549b5
commit
07229a4435
1 file changed
+2
-5
@@ -11,7 +11,7 @@ import sqlite3
|
|||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from concurrent.futures import ThreadPoolExecutor, as_completed
|
from concurrent.futures import ThreadPoolExecutor, as_completed
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from serverlibrary import CustomLogger
|
from serverlibrary import *
|
||||||
|
|
||||||
logging.setLoggerClass(CustomLogger)
|
logging.setLoggerClass(CustomLogger)
|
||||||
logger: CustomLogger = logging.getLogger(__name__) # type: ignore[assignment]
|
logger: CustomLogger = logging.getLogger(__name__) # type: ignore[assignment]
|
||||||
@@ -970,10 +970,7 @@ def main():
|
|||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
logging.basicConfig(
|
setup_logging(args.log_level)
|
||||||
level=LOG_LEVELS[args.log_level.upper()],
|
|
||||||
format="%(asctime)s %(levelname)s %(message)s",
|
|
||||||
)
|
|
||||||
library_dir = args.library.expanduser()
|
library_dir = args.library.expanduser()
|
||||||
library_dir = library_dir.resolve()
|
library_dir = library_dir.resolve()
|
||||||
if not library_dir.exists():
|
if not library_dir.exists():
|
||||||
|
|||||||
Reference in new issue
Block a user