mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Write log to stderr
Be consistent with python's default behavior and play nice with CGI.
This commit is contained in:
parent
14515cfe27
commit
c091399f5e
2 changed files with 3 additions and 3 deletions
|
@ -55,9 +55,9 @@ def start(name="radicale", filename=None, debug=False):
|
|||
# Default configuration, standard output
|
||||
if filename:
|
||||
logger.warning(
|
||||
"Logging configuration file '%s' not found, using stdout." %
|
||||
"Logging configuration file '%s' not found, using stderr." %
|
||||
filename)
|
||||
handler = logging.StreamHandler(sys.stdout)
|
||||
handler = logging.StreamHandler(sys.stderr)
|
||||
handler.setFormatter(logging.Formatter("%(message)s"))
|
||||
logger.addHandler(handler)
|
||||
if debug:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue