Skip to content

Commit

Permalink
убрал вывод config-файла
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris committed Nov 1, 2024
1 parent d457444 commit 1702dae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import (
"github.com/flant/elasticsearch-extractor/modules/config"
"github.com/flant/elasticsearch-extractor/modules/router"
"github.com/flant/elasticsearch-extractor/modules/version"
//TODO: переход на slog и JSON
//"log/slog"
)

var (
Expand All @@ -49,7 +51,7 @@ func init() {
log.Println("Bootstrap: build num.", vBuild)

cnf = config.Parse(configfile)
log.Println("Bootstrap: successful parsing config file. Items: ", cnf)
log.Println("Bootstrap: successful parsing config file.")
if _, err := os.Stat("/tmp/data"); errors.Is(err, os.ErrNotExist) {
err := os.Mkdir("/tmp/data", os.ModePerm)
if err != nil {
Expand Down

0 comments on commit 1702dae

Please sign in to comment.