summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--boardvoting.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/boardvoting.go b/boardvoting.go
index 7817bd3..7228849 100644
--- a/boardvoting.go
+++ b/boardvoting.go
@@ -821,14 +821,13 @@ func setupTLSConfig() (tlsConfig *tls.Config) {
return
}
-func init() {
- flag.StringVar(
- &configFile, "config", "config.yaml", "Configuration file name")
-}
-
func main() {
+ log.SetFormatter(&log.TextFormatter{FullTimestamp: true})
log.Infof("CAcert Board Voting version %s, build %s", version, build)
+ flag.StringVar(
+ &configFile, "config", "config.yaml", "Configuration file name")
+
flag.Parse()
var stopAll func()