enable the global debug and verbose for osc
authorHasan Wan <hasan.wan@intel.com>
Mon, 13 Feb 2012 05:29:04 +0000 (13:29 +0800)
committerHasan Wan <hasan.wan@intel.com>
Mon, 13 Feb 2012 05:29:04 +0000 (13:29 +0800)
gitbuildsys/cmd_build.py

index 1246cb0b60c0128f8334677daf1a2a2eedc2d540..babbd2fdac5b1910ca82f862b163bc639b432755 100644 (file)
@@ -36,6 +36,8 @@ OSCRC_TEMPLATE = """[general]
 apiurl = %(apiurl)s
 plaintext_passwd=0
 use_keyring=0
+http_debug = %(http_debug)s
+debug = %(debug)s
 gnome_keyring=0
 [%(apiurl)s]
 user=%(user)s
@@ -61,6 +63,8 @@ def do(opts, args):
         os.makedirs(tmpdir)
 
     oscrc = OSCRC_TEMPLATE % {
+                "http_debug": 1 if msger.get_loglevel() == 'debug' else 0,
+                "debug": 1 if msger.get_loglevel() == 'verbose' else 0,
                 "apiurl": APISERVER,
                 "user": USER,
                 "passwdx": PASSWDX,