Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
pipelet
Pipelet
Commits
b5a7a6bd
Commit
b5a7a6bd
authored
Dec 13, 2010
by
Betoule Marc
Browse files
Correct non closed log files problem
parent
2bf47727
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
pipelet/environment.py
pipelet/environment.py
+2
-0
pipelet/utils.py
pipelet/utils.py
+1
-1
No files found.
pipelet/environment.py
View file @
b5a7a6bd
...
...
@@ -402,4 +402,6 @@ class Environment(EnvironmentBase):
except
:
res
=
[]
self
.
logger
.
info
(
"No segment output found, setting seg_output to None"
)
for
h
in
self
.
logger
.
handlers
:
h
.
close
()
return
res
pipelet/utils.py
View file @
b5a7a6bd
...
...
@@ -252,7 +252,7 @@ def init_logger (name, filename, level=logging.DEBUG):
logger
=
logging
.
getLogger
(
name
)
logger
.
setLevel
(
logging
.
DEBUG
)
if
(
len
(
logger
.
handlers
)
<
4
):
if
(
len
(
logger
.
handlers
)
<
2
):
formatter
=
logging
.
Formatter
(
"%(asctime)s - %(name)s - %(levelname)s - %(message)s"
)
if
filename
:
rfhandler
=
logging
.
handlers
.
RotatingFileHandler
(
...
...
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