1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-12 10:45:38 +02:00

Adjust podop debug level based on environment

This commit is contained in:
kaiyou 2018-09-27 14:11:31 +02:00
parent 6ba55ee377
commit 6d088504bd
2 changed files with 2 additions and 2 deletions

View File

@ -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/§"),

View File

@ -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/§"),