diff getan/main.py @ 483:d47e32e6b7e7

Logging can be activated and deactivated.
author Magnus Schieder <mschieder@intevation.de>
date Thu, 28 Jun 2018 12:01:16 +0200
parents 999a438474f2
children 463894654d77
line wrap: on
line diff
--- a/getan/main.py	Wed Jun 27 11:54:56 2018 +0200
+++ b/getan/main.py	Thu Jun 28 12:01:16 2018 +0200
@@ -53,8 +53,8 @@
     parser.add_argument('--init-only', action='store_true', dest='initonly',
                         help='create databasefile if necessary and exit')
     parser.add_argument('-d', '--debug', action='store_const', dest='loglevel',
-                        default=logging.INFO, const=logging.DEBUG,
-                        help='set verbosity to debug')
+                        default=logging.NOTSET, const=logging.DEBUG,
+                        help='Enable debung mode')
     parser.add_argument('-l', '--logfile', dest='logfile', metavar='FILE',
                         help='''write log information to FILE [default:
                         %(default)s]''', default='getan.log')
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)