Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anders Blomdell
hash_backup
Commits
38879834
Commit
38879834
authored
Feb 18, 2016
by
Anders Blomdell
Browse files
Flush logging message
parent
47dbb015
Changes
1
Show whitespace changes
Inline
Side-by-side
loghandler.py
View file @
38879834
...
...
@@ -43,11 +43,11 @@ class LOG:
line
,
buf
=
buf
.
split
(
'
\n
'
,
1
)
if
self
.
prefix
!=
None
:
print
(
self
.
prefix
,
end
=
''
,
file
=
sys
.
stderr
)
print
(
line
,
file
=
sys
.
stderr
)
print
(
line
,
file
=
sys
.
stderr
,
flush
=
True
)
if
len
(
buf
):
if
self
.
prefix
!=
None
:
print
(
self
.
prefix
,
end
=
''
,
file
=
sys
.
stderr
)
print
(
buf
,
file
=
sys
.
stderr
)
print
(
buf
,
file
=
sys
.
stderr
,
flush
=
True
)
def
ERROR
(
self
,
*
args
):
self
.
MESSAGE
(
*
args
,
level
=
LOG_ERROR
)
...
...
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