mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-22 07:58:09 -07:00
consistent logging
This commit is contained in:
+2
-1
@@ -88,7 +88,7 @@ func New() *Config {
|
||||
// New.
|
||||
func Open(path string) (*Config, error) {
|
||||
if path == "" {
|
||||
log.Info("chihaya: using default configuration")
|
||||
log.V(1).Info("using default config")
|
||||
return New(), nil
|
||||
}
|
||||
|
||||
@@ -102,6 +102,7 @@ func Open(path string) (*Config, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
log.V(1).Infof("loaded config file: %s", path)
|
||||
return conf, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user