veza/veza-backend-api/cmd
senke a8a8b47b00 fix(backend): print config-init error to stderr before silent exit
main.go's config-load failure path silently os.Exit(1)s, which means
lumberjack's file-rotation buffer never flushes before exit and the
journal only sees \"started → exited 1\" with zero diagnostic. Last
deploy run's app log had only the \"Logger initialized\" line; the
actual NewConfig error never made it to disk because os.Exit doesn't
run defers.

A plain fmt.Fprintf to stderr → goes to systemd journal synchronously
→ the next probe rescue dump will show what's actually failing.

The original \"don't write to stderr to avoid broken pipe with
journald\" comment cited a concern that doesn't apply at this point in
startup: there's no parent to break the pipe to, and journald accepts
arbitrary bytes on stderr. Keep the os.Exit but print first.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-02 12:34:17 +02:00
..
api fix(backend): print config-init error to stderr before silent exit 2026-05-02 12:34:17 +02:00
backup incus deployement fully implemented, Makefile updated and make fmt ran 2026-01-13 19:47:57 +01:00
generate-config-docs adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
migrate_storage feat(tools): add cmd/migrate_storage CLI for bulk local→s3 migration (v1.0.8 P3) 2026-04-23 23:38:06 +02:00
migrate_tool v0.9.4 2026-03-05 23:03:43 +01:00
tools feat(seed): add --ci flag for bare-minimum E2E seed (v1.0.8 C4) 2026-04-25 23:48:35 +02:00