mirror of
https://github.com/jaypyles/Scraperr.git
synced 2025-11-16 22:26:11 +00:00
* chore: refactor wip * chore: refactor wip * chore: refactor wip * chore: refactor wip * chore: refactor wip * chore: refactor wip * chore: work in progress * chore: work in progress * chore: work in progress * chore: work in progress * chore: work in progress * chore: work in progress * chore: work in progress * chore: work in progress * chore: work in progress * chore: refactor wip * chore: work in progress * chore: refactor wip * chore: refactor wip * chore: refactor wip * fix: build * fix: cypress test * fix: cypress test * fix: cypress test * fix: cypress test * fix: cypress test * fix: cypress test * fix: cypress test * fix: cypress test * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests
16 lines
301 B
Python
16 lines
301 B
Python
# STL
|
|
import logging
|
|
from typing import Optional
|
|
|
|
LOG = logging.getLogger(__name__)
|
|
|
|
|
|
def get_log_level(level_name: Optional[str]) -> int:
|
|
level = logging.INFO
|
|
|
|
if level_name:
|
|
level_name = level_name.upper()
|
|
level = getattr(logging, level_name, logging.INFO)
|
|
|
|
return level
|