Title: Slight error in logging module's yaml config
Type: Stage: resolved
Components: Documentation Versions: Python 2.7
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: vinay.sajip Nosy List: Derrick.Petzold, docs@python, eric.araujo, python-dev, vinay.sajip
Priority: normal Keywords:

Created on 2011-09-06 03:33 by Derrick.Petzold, last changed 2011-09-06 16:18 by eric.araujo. This issue is now closed.

Messages (5)
msg143579 - (view) Author: Derrick Petzold (Derrick.Petzold) Date: 2011-09-06 03:33

    format: format=%(asctime)s - %(name)s - %(levelname)s - %(message)s

Should be:
    format: %(asctime)s - %(name)s - %(levelname)s - %(message)s


btw I have to say the logging module is just excellent. What a truly great work. ty.
msg143580 - (view) Author: Derrick Petzold (Derrick.Petzold) Date: 2011-09-06 03:43
Oh crap that doesn't work either.

yaml.scanner.ScannerError: while scanning for the next token
found character '%' that cannot start any token
  in "/var/sites/magnum/magnum/logging.yaml", line 4, column 13

Should be 

format: '%(asctime)s - %(name)s - %(levelname)s - %(message)s'

msg143602 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-09-06 13:08
New changeset 299ea19c3197 by Vinay Sajip in branch '2.7':
Closes #12906: Fixed bug in YAML configuration.

New changeset cf811943046b by Vinay Sajip in branch '3.2':
Closes #12906: Fixed bug in YAML configuration.

New changeset e9497423de7a by Vinay Sajip in branch 'default':
Closes #12906: Merged fix from 3.2.
msg143607 - (view) Author: Derrick Petzold (Derrick.Petzold) Date: 2011-09-06 14:20
I know this is without etiquette but I must say holy shit that was quick and I can only hope that I do can do the same some day. Not with logging but maybe with something else. I think maybe I am already working on it. Hopefully maybe. Its hard to tell at times :). Ha but this (logging) helped me a lot ty again.
msg143623 - (view) Author: √Čric Araujo (eric.araujo) * (Python committer) Date: 2011-09-06 16:18
Thanks to you for the report and fix!
Date User Action Args
2011-09-06 16:18:31eric.araujosetstatus: open -> closed

nosy: + eric.araujo
messages: + msg143623

resolution: fixed
2011-09-06 14:20:24Derrick.Petzoldsetstatus: closed -> open
resolution: fixed -> (no value)
messages: + msg143607
2011-09-06 13:08:38python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg143602

resolution: fixed
stage: resolved
2011-09-06 06:39:28georg.brandlsetassignee: docs@python -> vinay.sajip

nosy: + vinay.sajip
2011-09-06 03:43:52Derrick.Petzoldsetmessages: + msg143580
2011-09-06 03:33:20Derrick.Petzoldcreate