Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
vmdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6eec7a75
authored
Jul 29, 2013
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding debug log
parent
fb80d4bc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
vmdriver.py
+3
-0
No files found.
vmdriver.py
View file @
6eec7a75
...
...
@@ -12,12 +12,15 @@ def req_connection(original_function):
'''
def
new_function
(
*
args
,
**
kwargs
):
logging
.
debug
(
"Decorator running"
)
global
connection
if
connection
is
None
:
connect
()
try
:
logging
.
debug
(
"Decorator calling original function"
)
return_value
=
original_function
(
*
args
,
**
kwargs
)
finally
:
logging
.
debug
(
"Finally part of decorator"
)
disconnect
()
return
return_value
return
new_function
...
...
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