mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-03 16:59:12 +02:00
more tweeks
This commit is contained in:
parent
c85abb3b63
commit
5830f92637
15 changed files with 81 additions and 118 deletions
|
@ -8,7 +8,7 @@ import (
|
|||
)
|
||||
|
||||
func Config(name string) {
|
||||
config := viper.GetString("neko.config")
|
||||
config := viper.GetString("config")
|
||||
|
||||
if config != "" {
|
||||
viper.SetConfigFile(config) // Use config file from the flag.
|
||||
|
@ -35,8 +35,8 @@ func Config(name string) {
|
|||
|
||||
file := viper.ConfigFileUsed()
|
||||
logger := log.With().
|
||||
Bool("debug", viper.GetBool("neko.debug")).
|
||||
Str("logging", viper.GetString("neko.logs")).
|
||||
Bool("debug", viper.GetBool("debug")).
|
||||
Str("logging", viper.GetString("logs")).
|
||||
Str("config", file).
|
||||
Logger()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue