From 12dfdebd68a306dd974a5705d68e052336df4cc2 Mon Sep 17 00:00:00 2001 From: Akashdeep Dhar Date: May 12 2021 03:58:23 +0000 Subject: Merge pull request #24 from t0xic0der/disabling-metric-and-werkzeug-logs Disabled Werkzeug and metric storage logging --- diff --git a/base/mtrc.py b/base/mtrc.py index c845f68..36d942f 100644 --- a/base/mtrc.py +++ b/base/mtrc.py @@ -128,7 +128,7 @@ class GatherMetricToStorage(object): self.baseobjc.keys().sort() self.baseobjc.delete(self.baseobjc.keys()[0]) self.baseobjc.mset(self.jsonify_system_live_updating_metrics()) - echo(" * [" + ctime() + "] Stored system metrics now...") + # echo(" * [" + ctime() + "] Stored system metrics now...") sleep(self.duration) except KeyboardInterrupt as expt: self.baseobjc.close() diff --git a/falc.py b/falc.py index 1acb985..c1a48d0 100644 --- a/falc.py +++ b/falc.py @@ -20,6 +20,7 @@ """ import json +import logging from multiprocessing import Process from secrets import choice from time import sleep @@ -55,6 +56,8 @@ from werkzeug import serving main = falcon.API() +loge = logging.getLogger("werkzeug") +loge.disabled = True class ConnectionManager: