Skip to content

Commit a5ad726

Browse files
committed
issue2550776: fix missing intialization
1 parent 11fd1d1 commit a5ad726

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGES.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,9 @@ Fixed:
275275
windows service. Also the windows installer must be run as
276276
administrator and strong encouragement for installing the pytz
277277
module added to ``doc/installation.txt``.
278-
278+
- issue2550776: imapServer.py problem. Fixed a missing initialization of the
279+
logging level if no logging level option is supplied. (John Rouillard)
280+
279281
2016-01-11: 1.5.1
280282

281283
Pay attention:

scripts/imapServer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,9 @@ def main():
354354
parser.error('Invalid number of arguments. '
355355
'Each site needs a home and a server.')
356356

357+
if opts.verbose == None:
358+
opts.verbose = logging.WARNING
359+
357360
log.setLevel(opts.verbose)
358361
myServer = IMAPServer(delay=opts.delay, pidfile=opts.pidfile,
359362
daemon=opts.daemon)

0 commit comments

Comments
 (0)