mirror of
https://github.com/spf13/viper
synced 2025-05-06 20:27:17 +00:00
Use filename variable
This commit is contained in:
parent
dceace525a
commit
760350d83c
1 changed files with 1 additions and 1 deletions
2
viper.go
2
viper.go
|
@ -1137,7 +1137,7 @@ func (v *Viper) ReadInConfig() error {
|
|||
return UnsupportedConfigError(v.getConfigType())
|
||||
}
|
||||
|
||||
jww.DEBUG.Println("Reading file: ", v.getConfigFile())
|
||||
jww.DEBUG.Println("Reading file: ", filename)
|
||||
file, err := afero.ReadFile(v.fs, filename)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Add table
Reference in a new issue