Fixed a typo in config.
This commit is contained in:
parent
a9a82868ca
commit
ad336b03e2
@ -54,13 +54,13 @@ func main() {
|
|||||||
config.Log.ToStdout = true
|
config.Log.ToStdout = true
|
||||||
}
|
}
|
||||||
|
|
||||||
logErr, err := logging.NewLogger(config.Log.CleanError, config.Log.ToStdout)
|
logErr, err := logging.NewLogger(config.Log.ClearError, config.Log.ToStdout)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalln("failed to open error logger:", err)
|
log.Fatalln("failed to open error logger:", err)
|
||||||
}
|
}
|
||||||
defer logErr.Close()
|
defer logErr.Close()
|
||||||
|
|
||||||
logClean, err := logging.NewLogger(config.Log.Clean, config.Log.ToStdout)
|
logClean, err := logging.NewLogger(config.Log.Clear, config.Log.ToStdout)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalln("failed to open error logger:", err)
|
log.Fatalln("failed to open error logger:", err)
|
||||||
}
|
}
|
||||||
|
@ -19,8 +19,8 @@ type Configuration struct {
|
|||||||
Error string `yaml:"error"`
|
Error string `yaml:"error"`
|
||||||
Upload string `yaml:"upload"`
|
Upload string `yaml:"upload"`
|
||||||
Download string `yaml:"download"`
|
Download string `yaml:"download"`
|
||||||
Clean string `yaml:"clean"`
|
Clear string `yaml:"clear"`
|
||||||
CleanError string `yaml:"clean_error"`
|
ClearError string `yaml:"clear_error"`
|
||||||
} `yaml:"log"`
|
} `yaml:"log"`
|
||||||
Uploads struct {
|
Uploads struct {
|
||||||
Directory string `yaml:"directory"`
|
Directory string `yaml:"directory"`
|
||||||
|
Loading…
Reference in New Issue
Block a user