diff --git a/pkg/flow/configuration/file_repo.go b/pkg/flow/configuration/file_repo.go index cee402fc..402f03b5 100644 --- a/pkg/flow/configuration/file_repo.go +++ b/pkg/flow/configuration/file_repo.go @@ -230,7 +230,6 @@ func (r *ConfigFileRepo) fallbackIfNecessary(retryTimes int, req *configconnecto if err := r.persistHandler.LoadMessageFromFile(fileName, cacheVal); err != nil { return } - log.GetBaseLogger().Errorf("[Config] fallback to local cache success.") response, err := r.chain.Execute(req, func(configFile *configconnector.ConfigFile) (*configconnector.ConfigFileResponse, error) { return &configconnector.ConfigFileResponse{ @@ -251,6 +250,7 @@ func (r *ConfigFileRepo) fallbackIfNecessary(retryTimes int, req *configconnecto log.GetBaseLogger().Errorf("[Config] fallback to local cache fail. %+v", err) return } + log.GetBaseLogger().Errorf("[Config] fallback to local cache success.") localFile := response.ConfigFile r.fireChangeEvent(localFile) }