Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cc-node
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
cc-node
Commits
05475630
Commit
05475630
authored
12 years ago
by
Anael Beutot
Browse files
Options
Downloads
Patches
Plain Diff
Added debug argument in config file
parent
8b1a63b1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cloudcontrol/node/config.py
+7
-1
7 additions, 1 deletion
cloudcontrol/node/config.py
etc/cc-node.conf
+1
-0
1 addition, 0 deletions
etc/cc-node.conf
examples/cc-node-debug.conf
+1
-0
1 addition, 0 deletions
examples/cc-node-debug.conf
with
9 additions
and
1 deletion
cloudcontrol/node/config.py
+
7
−
1
View file @
05475630
...
...
@@ -35,7 +35,13 @@ class NodeConfigParser(object):
self
.
logging_level
=
int
(
config
.
get
(
'
verbosity
'
,
0
))
self
.
debug
=
True
self
.
debug
=
config
.
get
(
'
debug
'
,
'
no
'
)
if
self
.
debug
in
(
'
yes
'
,
'
1
'
,
'
on
'
,
'
true
'
):
self
.
debug
=
True
else
:
if
self
.
debug
not
in
(
'
no
'
,
'
0
'
,
'
off
'
,
'
false
'
):
logger
.
error
(
'
Invalid value for debug in config file
'
)
self
.
debug
=
False
def
configure_logging
(
level
):
...
...
This diff is collapsed.
Click to expand it.
etc/cc-node.conf
+
1
−
0
View file @
05475630
...
...
@@ -5,3 +5,4 @@ login=_CC_SERVER_LOGIN_
password
=
_
CC_SERVER_PASSWD_
# verbosity = 0
# debug = off
This diff is collapsed.
Click to expand it.
examples/cc-node-debug.conf
+
1
−
0
View file @
05475630
...
...
@@ -5,3 +5,4 @@ login=__USER__
password
=
__
PASSWD__
verbosity
=
3
debug
=
on
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment