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:
- cd $GOPATH/src/$REPO_NAME
- cp config-sample.json config.json
- export CC=clang
- make dep
unit_tests:
......
......@@ -30,7 +30,7 @@ dep:
@go get github.com/mitchellh/gox
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:
@rm -f $(PROJECT_NAME)
......
......@@ -42,7 +42,7 @@ var (
debug bool
)
func init() {
func initConfig() {
flag.StringVar(&configPath, "config", "./config.json", "Path to configuration file")
flag.Parse()
......@@ -69,6 +69,8 @@ func init() {
}
func main() {
initConfig()
logger.Printf("Starting log monitoring with config %s", configPath)
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