[c-c start repo] config log's threshold is upper case while option accepts lower case. This break c-c start of repository instances.
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 19 Jul 2010 10:13:01 +0200
changeset 5990 6f3c77c79a88
parent 5989 099d46422f5a
child 5991 39d031ee4af3
[c-c start repo] config log's threshold is upper case while option accepts lower case. This break c-c start of repository instances.
server/serverctl.py
--- a/server/serverctl.py	Mon Jul 19 10:10:20 2010 +0200
+++ b/server/serverctl.py	Mon Jul 19 10:13:01 2010 +0200
@@ -254,7 +254,7 @@
         command = ['cubicweb-ctl start-repository ']
         if config.debugmode:
             command.append('--debug')
-        command.append('--loglevel %s' % config['log-threshold'])
+        command.append('--loglevel %s' % config['log-threshold'].lower())
         command.append(config.appid)
         os.system(' '.join(command))