Skip to content
Snippets Groups Projects
Commit cf14bc73 authored by Erick Hitter's avatar Erick Hitter
Browse files

Fix "flag provided but not defined: -test.testlogfile"

parent 7ea27164
No related branches found
No related tags found
1 merge request!5Add go.mod
Pipeline #4447 failed
...@@ -21,8 +21,6 @@ before_script: ...@@ -21,8 +21,6 @@ before_script:
- cd $GOPATH/src/$REPO_NAME - cd $GOPATH/src/$REPO_NAME
- cp config-sample.json config.json - cp config-sample.json config.json
- export CC=clang
- make dep - make dep
unit_tests: unit_tests:
......
...@@ -30,7 +30,7 @@ dep: ...@@ -30,7 +30,7 @@ dep:
@go get github.com/mitchellh/gox @go get github.com/mitchellh/gox
build: dep build: dep
@gox -output="${CI_PROJECT_DIR}/eth-log-alerting-builds/{{.Dir}}_{{.OS}}_{{.Arch}}" -parallel=4 -osarch '!darwin/386' @gox -output="${CI_PROJECT_DIR}/${PROJECT_NAME}/{{.Dir}}_{{.OS}}_{{.Arch}}" -parallel=6 -osarch '!darwin/386'
clean: clean:
@rm -f $(PROJECT_NAME) @rm -f $(PROJECT_NAME)
......
...@@ -42,7 +42,7 @@ var ( ...@@ -42,7 +42,7 @@ var (
debug bool debug bool
) )
func init() { func initConfig() {
flag.StringVar(&configPath, "config", "./config.json", "Path to configuration file") flag.StringVar(&configPath, "config", "./config.json", "Path to configuration file")
flag.Parse() flag.Parse()
...@@ -69,6 +69,8 @@ func init() { ...@@ -69,6 +69,8 @@ func init() {
} }
func main() { func main() {
initConfig()
logger.Printf("Starting log monitoring with config %s", configPath) logger.Printf("Starting log monitoring with config %s", configPath)
sig := make(chan os.Signal, 1) sig := make(chan os.Signal, 1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment