Code Review
/
nfvbench.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
NFVBENCH-153 Add support for python3
[nfvbench.git]
/
nfvbench
/
fluentd.py
diff --git
a/nfvbench/fluentd.py
b/nfvbench/fluentd.py
index
ad0ea34
..
535d640
100644
(file)
--- a/
nfvbench/fluentd.py
+++ b/
nfvbench/fluentd.py
@@
-114,7
+114,7
@@
class FluentLogHandler(logging.Handler):
def __get_highest_level(self):
if self.__error_counter > 0:
return logging.ERROR
def __get_highest_level(self):
if self.__error_counter > 0:
return logging.ERROR
-
el
if self.__warning_counter > 0:
+ if self.__warning_counter > 0:
return logging.WARNING
return logging.INFO
return logging.WARNING
return logging.INFO
@@
-122,7
+122,7
@@
class FluentLogHandler(logging.Handler):
highest_level = self.__get_highest_level()
if highest_level == logging.INFO:
return "GOOD RUN"
highest_level = self.__get_highest_level()
if highest_level == logging.INFO:
return "GOOD RUN"
-
el
if highest_level == logging.WARNING:
+ if highest_level == logging.WARNING:
return "RUN WITH WARNINGS"
return "RUN WITH ERRORS"
return "RUN WITH WARNINGS"
return "RUN WITH ERRORS"