Skip to content

Commit

Permalink
[FSSDK-9774] chore: convert warning into error log for SyncConfig fai…
Browse files Browse the repository at this point in the history
…lure (#383)
  • Loading branch information
pulak-opti authored Nov 21, 2023
1 parent 6c640ba commit c270819
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/config/polling_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (cm *PollingProjectConfigManager) SyncConfig() {

if e != nil {
msg := "unable to fetch fresh datafile"
cm.logger.Warning(msg)
cm.logger.Error(msg, e)
cm.configLock.Lock()

if code == http.StatusForbidden {
Expand All @@ -156,7 +156,7 @@ func (cm *PollingProjectConfigManager) SyncConfig() {

projectConfig, err := datafileprojectconfig.NewDatafileProjectConfig(datafile, logging.GetLogger(cm.sdkKey, "NewDatafileProjectConfig"))
if err != nil {
cm.logger.Warning("failed to create project config")
cm.logger.Error("failed to create project config", err)
closeMutex(errors.New("unable to parse datafile"))
return
}
Expand Down

0 comments on commit c270819

Please sign in to comment.