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
70b81309
Commit
70b81309
authored
12 years ago
by
Anael Beutot
Browse files
Options
Downloads
Patches
Plain Diff
Set libvirt environment variables to deactivate logging
parent
67d145b3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cloudcontrol/node/node.py
+5
-0
5 additions, 0 deletions
cloudcontrol/node/node.py
with
5 additions
and
0 deletions
cloudcontrol/node/node.py
+
5
−
0
View file @
70b81309
import
os
import
time
import
signal
import
logging
...
...
@@ -152,6 +153,10 @@ class RPCStartHandler(Thread):
if
self
.
loop
.
role
is
not
None
:
self
.
loop
.
close_plugins
()
logger
.
debug
(
'
Role hypervisor affected
'
)
# set libvirt environement variables
os
.
environ
[
'
LIBVIRT_DEBUG
'
]
=
'
4
'
# os.environ['LIBVIRT_LOG_FILTERS'] = ''
os
.
environ
[
'
LIBVIRT_LOG_OUTPUT
'
]
=
'
4:stderr
'
# we don't import those modules at the top because some dependancies
# may not be installed
from
cloudcontrol.node.hypervisor
import
Handler
as
HypervisorHandler
...
...
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