projects
/
tools
/
gbs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
317ca35
)
enable the global debug and verbose for osc
author
Hasan Wan
<hasan.wan@intel.com>
Mon, 13 Feb 2012 05:29:04 +0000
(13:29 +0800)
committer
Hasan Wan
<hasan.wan@intel.com>
Mon, 13 Feb 2012 05:29:04 +0000
(13:29 +0800)
gitbuildsys/cmd_build.py
patch
|
blob
|
history
diff --git
a/gitbuildsys/cmd_build.py
b/gitbuildsys/cmd_build.py
index 1246cb0b60c0128f8334677daf1a2a2eedc2d540..babbd2fdac5b1910ca82f862b163bc639b432755 100644
(file)
--- a/
gitbuildsys/cmd_build.py
+++ b/
gitbuildsys/cmd_build.py
@@
-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,