diff --git a/hbd/server/main.py b/hbd/server/main.py index 42f5f20..179c8c5 100644 --- a/hbd/server/main.py +++ b/hbd/server/main.py @@ -475,7 +475,8 @@ def run(config, config_path=None): if config.get("debug", 0) > 0: log_level = logging.DEBUG logging.basicConfig(level=log_level) - logging.getLogger("aiohttp.access").setLevel(logging.DEBUG) + if not config.get("debug", 0): + logging.getLogger("aiohttp.access").propagate = False load_pickled_hosts(config, hbdclass) notify_mod.initlog(logfile=config.get("logfile", "messages.log")) diff --git a/hbd/server/templates/alerts.html b/hbd/server/templates/alerts.html index 733b231..5fd941d 100644 --- a/hbd/server/templates/alerts.html +++ b/hbd/server/templates/alerts.html @@ -439,7 +439,7 @@ ${alert.level} ${alert.hostname} -
${alert.metric_path}
+
${alert.metric_path.includes('.') ? alert.metric_path.slice(alert.metric_path.indexOf('.') + 1) : alert.metric_path}
${valueText} Active for ${duration}