mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-10 23:03:05 +02:00
audit errors and warnings.
This commit is contained in:
parent
49c48b3200
commit
c2fe224562
7 changed files with 20 additions and 22 deletions
|
@ -98,10 +98,10 @@ func init() {
|
|||
|
||||
if err := viper.ReadInConfig(); err != nil {
|
||||
if _, ok := err.(viper.ConfigFileNotFoundError); !ok {
|
||||
log.Error().Err(err)
|
||||
log.Err(err)
|
||||
}
|
||||
if config != "" {
|
||||
log.Error().Err(err)
|
||||
log.Err(err)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -124,7 +124,7 @@ func init() {
|
|||
logger.Warn().Msg("preflight complete without config file")
|
||||
} else {
|
||||
if _, err := os.Stat(file); os.IsNotExist(err) {
|
||||
logger.Error().Msg("preflight complete with nonexistent config file")
|
||||
logger.Err(err).Msg("preflight complete with nonexistent config file")
|
||||
} else {
|
||||
logger.Info().Msg("preflight complete")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue