Config: Add info log for case-insensitive file systems

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-12-26 18:30:04 +01:00
parent 02722ab861
commit bfadc9fd6c
2 changed files with 3 additions and 2 deletions

View file

@ -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()
}

View file

@ -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 {