Adjust podop debug level based on environment

master
kaiyou 6 years ago
parent 6ba55ee377
commit 6d088504bd

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

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

Loading…
Cancel
Save