git://git.onelab.eu
/
nodemanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add shebang to conf_files so that bootmanager can call it directly
[nodemanager.git]
/
logger.py
diff --git
a/logger.py
b/logger.py
index
796064f
..
569d2e0
100644
(file)
--- a/
logger.py
+++ b/
logger.py
@@
-34,7
+34,7
@@
def log(msg, level=LOG_NODE):
if level > LOG_LEVEL:
return
try:
if level > LOG_LEVEL:
return
try:
- fd = os.open(LOG_FILE, os.O_WRONLY | os.O_CREAT | os.O_APPEND, 0600)
+ fd = os.open(LOG_FILE, os.O_WRONLY | os.O_CREAT | os.O_APPEND, 0
o
600)
if not msg.endswith('\n'):
msg += '\n'
os.write(fd, '%s: %s' % (time.asctime(time.gmtime()), msg))
if not msg.endswith('\n'):
msg += '\n'
os.write(fd, '%s: %s' % (time.asctime(time.gmtime()), msg))