From 6d088504bd2693ef71c434f43f3d513e04325029 Mon Sep 17 00:00:00 2001 From: kaiyou Date: Thu, 27 Sep 2018 14:11:31 +0200 Subject: [PATCH] Adjust podop debug level based on environment --- core/dovecot/start.py | 2 +- core/postfix/start.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/dovecot/start.py b/core/dovecot/start.py index d2163e56..d77104d6 100755 --- a/core/dovecot/start.py +++ b/core/dovecot/start.py @@ -11,7 +11,7 @@ from podop import run_server def start_podop(): os.setuid(8) - run_server(40, "dovecot", "/tmp/podop.socket", [ + run_server(3 if "DEBUG" in os.environ else 1, "dovecot", "/tmp/podop.socket", [ ("quota", "url", "http://admin/internal/dovecot/§"), ("auth", "url", "http://admin/internal/dovecot/§"), ("sieve", "url", "http://admin/internal/dovecot/§"), diff --git a/core/postfix/start.py b/core/postfix/start.py index a4af9328..26fa7329 100755 --- a/core/postfix/start.py +++ b/core/postfix/start.py @@ -12,7 +12,7 @@ from podop import run_server def start_podop(): os.setuid(100) - run_server(40, "postfix", "/tmp/podop.socket", [ + run_server(3 if "DEBUG" in os.environ else 1, "postfix", "/tmp/podop.socket", [ ("transport", "url", "http://admin/internal/postfix/transport/§"), ("alias", "url", "http://admin/internal/postfix/alias/§"), ("domain", "url", "http://admin/internal/postfix/domain/§"),