Config: Add info log for case-insensitive file systems
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
02722ab861
commit
bfadc9fd6c
2 changed files with 3 additions and 2 deletions
|
@ -82,7 +82,7 @@ func NewConfig(ctx *cli.Context) *Config {
|
|||
if err := c.options.Load(configFile); err != nil {
|
||||
log.Warnf("config: %s", err)
|
||||
} else {
|
||||
log.Debugf("config: loaded options from %s", txt.Quote(configFile))
|
||||
log.Debugf("config: options loaded from %s", txt.Quote(configFile))
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -127,6 +127,7 @@ func (c *Config) Init() error {
|
|||
if insensitive, err := c.CaseInsensitive(); err != nil {
|
||||
return err
|
||||
} else if insensitive {
|
||||
log.Infof("config: case-insensitive file system detected")
|
||||
fs.IgnoreCase()
|
||||
}
|
||||
|
||||
|
|
|
@ -211,7 +211,7 @@ func (c *Config) initSettings() {
|
|||
fileName := c.SettingsFile()
|
||||
|
||||
if err := c.settings.Load(fileName); err == nil {
|
||||
log.Debugf("config: loaded settings from %s ", fileName)
|
||||
log.Debugf("config: settings loaded from %s ", fileName)
|
||||
} else if err := c.settings.Save(fileName); err != nil {
|
||||
log.Errorf("failed creating %s: %s", fileName, err)
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue