parse_command_line must add logging handler only once #60

redbaron opened this Issue Feb 4, 2010 · 2 comments


None yet
3 participants

redbaron commented Feb 4, 2010

I use options module in this way:

#settings loading
parse_command_line() #get settings file option⋅
parse_command_line() #override settings from file

But second call to parse_command_line adds additional logging handler, which duplicates intries in output log.

that's why I've separated
parse_command_line and process_options in my branch

@jeethu jeethu referenced this issue in jeethu/cyclone Jul 16, 2012

@lxfontes lxfontes syncing (again) with txredisapi. related to issue #60
support for nested multi-bulk and cosmetic changes.

bdarnell commented Mar 30, 2013

In Tornado 3.0 you can pass final=False to all parse calls but the last to suppress any side effects, or set a callback on the definition of your settings option to load the config file during the command line parsing.

bdarnell closed this Mar 30, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment