git://git.onelab.eu
/
nodemanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9df0627
)
Capture exceptions when spawning other processes.
author
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Tue, 10 Mar 2009 16:52:55 +0000
(16:52 +0000)
committer
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Tue, 10 Mar 2009 16:52:55 +0000
(16:52 +0000)
logger.py
patch
|
blob
|
history
diff --git
a/logger.py
b/logger.py
index
0b083ca
..
3fedde9
100644
(file)
--- a/
logger.py
+++ b/
logger.py
@@
-43,7
+43,7
@@
def log(msg,level=LOG_NODE):
def log_call(*args):
log('running command %s' % ' '.join(args))
- try: subprocess.call(args, close_fds=True)
+ try: subprocess.c
heck_c
all(args, close_fds=True)
except: log_exc()
def log_exc(name = None):