Skip to content

Commit

Permalink
suppress error when existing metadata not found
Browse files Browse the repository at this point in the history
  • Loading branch information
caffeinated92 committed Sep 4, 2024
1 parent 16c3753 commit f0dc196
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cluster/srv_bck.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ package cluster

import (
"encoding/json"
"errors"
"fmt"
"os"
"time"
Expand Down Expand Up @@ -66,7 +67,9 @@ func (server *ServerMonitor) AppendLastMetadata(method string, latest *int64) {
*latest = meta.Id
}
} else {
cluster.LogModulePrintf(cluster.Conf.Verbose, config.ConstLogModTask, config.LvlDbg, "Error reading %s meta: %s", method, err.Error())
if !errors.Is(err, os.ErrNotExist) {
cluster.LogModulePrintf(cluster.Conf.Verbose, config.ConstLogModTask, config.LvlDbg, "Error reading %s meta: %s", method, err.Error())
}
}
}

Expand Down

0 comments on commit f0dc196

Please sign in to comment.