logging
This commit is contained in:
parent
06889cc413
commit
c3c2e1b743
@ -9,7 +9,7 @@ logging.basicConfig(
|
||||
format='%(asctime)s - %(levelname)s - %(message)s'
|
||||
)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
logger = logging.getLogger("download_logger")
|
||||
|
||||
# Define the hook function
|
||||
def my_hook(d):
|
||||
|
||||
@ -13,7 +13,7 @@ os.makedirs("/data/logs", exist_ok=True)
|
||||
|
||||
# Setup timed rotating logger
|
||||
log_path = "/data/logs/syllabus.log"
|
||||
logger = logging.getLogger(__name__)
|
||||
logger = logging.getLogger("main_logger")
|
||||
logger.setLevel(logging.DEBUG)
|
||||
|
||||
# Remove any default handlers
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user