X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=nfvbench%2Ffluentd.py;h=16ff33e31c25ef20955a1d23fe8a433f8facb000;hb=124ecd5d59869bad3a4f5f53f91f5b9c99051512;hp=a9bda62a80b0cab62088d454179f32a6cac7fa06;hpb=08c848d44a2a39828593b30c172a6e33773f4efc;p=nfvbench.git diff --git a/nfvbench/fluentd.py b/nfvbench/fluentd.py index a9bda62..16ff33e 100644 --- a/nfvbench/fluentd.py +++ b/nfvbench/fluentd.py @@ -12,9 +12,10 @@ # License for the specific language governing permissions and limitations # under the License. +import logging + from datetime import datetime from fluent import sender -import logging import pytz @@ -108,8 +109,7 @@ class FluentLogHandler(logging.Handler): return "GOOD RUN" elif highest_level == logging.WARNING: return "RUN WITH WARNINGS" - else: - return "RUN WITH ERRORS" + return "RUN WITH ERRORS" def __update_stats(self, levelno): if levelno == logging.WARNING: