Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
kamaki
Commits
ac7de5ed
Commit
ac7de5ed
authored
Aug 19, 2015
by
Stavros Sachtouris
Committed by
Giorgos Korfiatis
Oct 30, 2015
Browse files
Stop CLI from removing LOG_DATA,LOG_TOKEN flags
parent
70cff148
Changes
2
Show whitespace changes
Inline
Side-by-side
kamaki/cli/cmds/__init__.py
View file @
ac7de5ed
...
@@ -202,19 +202,19 @@ class CommandInit(object):
...
@@ -202,19 +202,19 @@ class CommandInit(object):
if
not
self
.
client
:
if
not
self
.
client
:
return
return
try
:
try
:
self
.
client
.
LOG_TOKEN
=
(
self
.
client
.
LOG_TOKEN
=
self
.
client
.
LOG_TOKEN
or
(
self
[
'config'
].
get
(
'global'
,
'log_token'
).
lower
()
==
'on'
)
self
[
'config'
].
get
(
'global'
,
'log_token'
).
lower
()
==
'on'
)
except
Exception
as
e
:
except
Exception
as
e
:
log
.
debug
(
'Failed to read custom log_token setting:'
log
.
debug
(
'Failed to read custom log_token setting:'
'%s
\n
default for log_token is off'
%
e
)
'%s
\n
default for log_token is off'
%
e
)
try
:
try
:
self
.
client
.
LOG_DATA
=
(
self
.
client
.
LOG_DATA
=
self
.
client
.
LOG_DATA
or
(
self
[
'config'
].
get
(
'global'
,
'log_data'
).
lower
()
==
'on'
)
self
[
'config'
].
get
(
'global'
,
'log_data'
).
lower
()
==
'on'
)
except
Exception
as
e
:
except
Exception
as
e
:
log
.
debug
(
'Failed to read custom log_data setting:'
log
.
debug
(
'Failed to read custom log_data setting:'
'%s
\n
default for log_data is off'
%
e
)
'%s
\n
default for log_data is off'
%
e
)
try
:
try
:
self
.
client
.
LOG_PID
=
(
self
.
client
.
LOG_PID
=
self
.
client
.
LOG_PID
or
(
self
[
'config'
].
get
(
'global'
,
'log_pid'
).
lower
()
==
'on'
)
self
[
'config'
].
get
(
'global'
,
'log_pid'
).
lower
()
==
'on'
)
except
Exception
as
e
:
except
Exception
as
e
:
log
.
debug
(
'Failed to read custom log_pid setting:'
log
.
debug
(
'Failed to read custom log_pid setting:'
...
...
kamaki/cli/cmds/network.py
View file @
ac7de5ed
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment