logging is inconsistent between ubuntu-cli and ubuntu-application
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Quickly |
New
|
Undecided
|
Unassigned |
Bug Description
a ubuntu-cli project uses -d to turn on debugging but ubuntu-application uses -v and -vv to turn on logging
When ubuntu-application template acquired the concept of a quickly supplied library, logging split into -v for user supplied code and -vv for user and library supplied code. -d became meaningless and was dropped
for ubuntu-cli projects the original api remains, -d for debug or -vvv for debug
all the templates should behave in a similar way
$ quickly create ubuntu-application showlog
$ cd showlog/
$ quickly run -d
Usage: showlog [options]
showlog: error: no such option: -d
tony@tony-
DEBUG:showlog: set_up_logging() 'logging enabled'
$ quickly run -vv
DEBUG:showlog: set_up_logging() 'logging enabled'
<snip> verbose debug information </snip>
$ quickly create ubuntu-cli console
$ cd console/
$ quickly run -d
I'm launched and my args are:
2011-10-27 23:55:48,809 DEBUG end of prog
Related branches
- Quickly Developers: Pending requested
-
Diff: 145 lines (+42/-17)7 files modifieddata/templates/ubuntu-application/create.py (+1/-1)
data/templates/ubuntu-application/project_root/python/__init__.py (+16/-3)
data/templates/ubuntu-application/project_root/python_lib/Builder.py (+1/-1)
data/templates/ubuntu-application/project_root/python_lib/PreferencesDialog.py (+1/-1)
data/templates/ubuntu-application/project_root/python_lib/Window.py (+1/-1)
data/templates/ubuntu-application/project_root/python_lib/helpers.py (+8/-10)
data/templates/ubuntu-application/run.py (+14/-0)