Skip to content

Commit

Permalink
Fix help message being mangled by log
Browse files Browse the repository at this point in the history
  • Loading branch information
catouc committed Aug 28, 2022
1 parent 70da3a4 commit 717cd14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/gitlab-ci-crawler/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"context"
"fmt"
"os"

"github.com/catouc/gitlab-ci-crawler/internal/crawler"
Expand All @@ -16,7 +17,8 @@ var neo4jcfg neo4j.Config

func init() {
if err := crawler.ParseConfig(&cfg); err != nil {
log.Fatal().Err(err).Msg("failed to parse crawler config")
fmt.Println(err)
os.Exit(1)
}

switch cfg.LogFormat {
Expand Down

0 comments on commit 717cd14

Please sign in to comment.