diff gcalendarwatch.py @ 37:2da773e48a57

credential code update. needed to rm pickle and relogin
author drewp@bigasterisk.com
date Sun, 12 Nov 2023 23:20:37 -0800
parents 32fd3bd77ff2
children 119f0cb719eb
line wrap: on
line diff
--- a/gcalendarwatch.py	Sun Nov 12 23:19:23 2023 -0800
+++ b/gcalendarwatch.py	Sun Nov 12 23:20:37 2023 -0800
@@ -38,7 +38,7 @@
 from ingest import SyncToMongo
 from localtypes import Conf, Record
 
-logging.basicConfig(level=logging.INFO)
+logging.basicConfig(level=logging.DEBUG)
 log = logging.getLogger()
 
 EV = Namespace("http://bigasterisk.com/event#")
@@ -233,7 +233,7 @@
                         Route('/pollNow', functools.partial(PollNow, loop), methods=['POST'])
                     ])
 
-    app.add_middleware(PrometheusMiddleware, app_name='gcalendarwatch')
+    app.add_middleware(PrometheusMiddleware, group_paths=True, filter_unhandled_paths=True, app_name='gcalendarwatch')
     app.add_route("/metrics", handle_metrics)
     return app