Server versionFlag duplicates -unsafe-logging option, causes immediate panic
Recent versions of the Snowflake server (e.g. 839d2218) panic immediately on startup:
snowflake/server$ ./server
./server flag redefined: unsafe-logging
panic: ./server flag redefined: unsafe-logging
The cause is a copy-paste error at 33248f3d,
which was part of !111 (closed).
The option name should have been "version"
, but it duplicates "unsafe-logging"
instead.
flag.BoolVar(&unsafeLogging, "unsafe-logging", false, "prevent logs from being scrubbed")
flag.BoolVar(&versionFlag, "unsafe-logging", false, "display version info to stderr and quit")