stdiscosrv/strelaysrv: Add an option to disable log timestamps
Author: NealPierceGHCreated Sep 28, 2026Updated Sep 28, 2026
Labelsenhancementneeds-triage
Feature description
I use both stdiscosrv and strelaysrv in a closed network as systemd services. It would be nice to have a command line option to disable the native log output timestamps as they are redundant with journald/syslog timestamps.
Problem or use case
strelaysrv ends up with 3 timestamps which is really weird
$ journalctl --output=short-iso -t strelaysrv`
2026-09-24T12:54:31+02:00 stsvc strelaysrv[81]: 2026-09-24 12:54:31 INF 2026/09/24 12:54:31 main.go:148: Connection limit 838860
2026-09-24T12:54:31+02:00 stsvc strelaysrv[81]: 2026-09-24 12:54:31 INF 2026/09/24 12:54:31 main.go:270: URI: relay://0.0.0.0:22167/?id=<REDACTED>&networkTimeout=2m0s&pingInterval=1m0sand same for stdiscosrv but at least not 3
$ journalclt --output=short-iso -t stdiscosrv
2026-09-24T12:54:31+02:00 stsvc stdiscosrv[80]: 2026-09-24 12:54:31 INF stdiscosrv v2.1.5 "Hafnium Hornet" (go1.27.1 linux-amd64) [email protected] 2026-09-08 06:57:55 UTC [noupgrade] (log.pkg=main)
2026-09-24T12:54:31+02:00 stsvc stdiscosrv[80]: 2026-09-24 12:54:31 INF Loaded database (records=3 log.pkg=main)
2026-09-24T13:54:31+02:00 stsvc stdiscosrv[80]: 2026-09-24 13:54:31 INF Calculating statistics (log.pkg=main)
2026-09-24T13:54:31+02:00 stsvc stdiscosrv[80]: 2026-09-24 13:54:31 INF Flushing database (log.pkg=main)Alternatives or workarounds
Maybe a -no-log-timestamps?
Source: syncthing/syncthing