Skip to content

Commit

Permalink
refactor: use info level for if .env couldn't be loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwep committed Oct 28, 2023
1 parent 2ab145e commit 95d6a5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ GENESIS_LOG_MODE=development
# Port to listen on
GENESIS_PORT=8080

# Users to be created
# Use ! as suffix for the username to indicate that this user
# Users to be created, use ! as suffix for the username to indicate that this user
# should be created as an admin. These can add, remove and edit users.
GENESIS_CREATE_USERS=admin!:2lWK6m4hgmxjUGHo

Expand Down
2 changes: 1 addition & 1 deletion core/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type AppConfig struct {

var Config = func() AppConfig {
if err := godotenv.Load(path.Join(currentDir(), ".env")); err != nil {
Logger.Warn("failed to retrieve data", zap.Error(err))
Logger.Info(".env file not found", zap.Error(err))
}

return AppConfig{
Expand Down

0 comments on commit 95d6a5b

Please sign in to comment.