]> average.org Git - loctrkd.git/blobdiff - loctrkd/rectifier.py
beesure: consider valid if enough satellites
[loctrkd.git] / loctrkd / rectifier.py
index e73aeaed3188ca5433d9abfadbe2ed7b69052d22..c8f9912c621f6c8234d5a9125c61a1e556d0df5d 100644 (file)
@@ -51,7 +51,9 @@ def runserver(conf: ConfigParser) -> None:
     zpush = zctx.socket(zmq.PUSH)  # type: ignore
     zpush.connect(conf.get("collector", "listenurl"))
     zpub = zctx.socket(zmq.PUB)  # type: ignore
+    oldmask = umask(0o117)
     zpub.bind(conf.get("rectifier", "publishurl"))
+    umask(oldmask)
 
     try:
         while True:
@@ -107,7 +109,7 @@ def runserver(conf: ConfigParser) -> None:
                         ).packed
                     )
                 except Exception as e:
-                    log.warning(
+                    log.exception(
                         "Lookup for %s rectified as %s resulted in %s",
                         msg,
                         rect,