Add flag to disable timestamps for process log (#2781)

* Add flag to enable/disable timstamps for process log.

solves #2615

* Remove timestamp argument from log.Printf()

* Add log-timestamps=false to systemd unit

* Copy log flags

* Fix argument list
This commit is contained in:
Julian Kornberger
2019-11-06 21:06:34 +01:00
committed by Matt Holt
parent aa94f2b802
commit cc63eca0c8
4 changed files with 13 additions and 11 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ Group=www-data
Environment=CADDYPATH=/etc/ssl/caddy
; Always set "-root" to something safe in case it gets forgotten in the Caddyfile.
ExecStart=/usr/local/bin/caddy -log stdout -agree=true -conf=/etc/caddy/Caddyfile -root=/var/tmp
ExecStart=/usr/local/bin/caddy -log stdout -log-timestamps=false -agree=true -conf=/etc/caddy/Caddyfile -root=/var/tmp
ExecReload=/bin/kill -USR1 $MAINPID
; Use graceful shutdown with a reasonable timeout