blob: 6db8441b89226a5ef27af21c523ca99e161195f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
"""Logging utilities."""
import logging
# The logging system will call this automagically if its module-level logging
# functions are used. We call it explicitly to make sure something handles
# messages sent to our non-root logger. If the root logger already has handlers
# this is a noop, and if someone attaches a handler to our logger that
# overrides the root logger handler.
logging.basicConfig()
logger = logging.getLogger("pkgcheck")
|