feat(btc): use logger warn

Co-authored-by: Gaze <dev@gaze.network>
This commit is contained in:
Gaze
2024-04-22 02:46:57 +07:00
parent 4a1819c3f0
commit fcdc54d360
2 changed files with 2 additions and 2 deletions

View File

@@ -129,7 +129,7 @@ func (d *BitcoinNodeDatasource) FetchAsync(ctx context.Context, from, to int64,
// send blocks to subscription channel
if err := subscription.Send(ctx, data); err != nil {
logger.ErrorContext(ctx, "failed while dispatch block",
logger.WarnContext(ctx, "failed while dispatch block",
slogx.Error(err),
slogx.Int64("start", data[0].Header.Height),
slogx.Int64("end", data[len(data)-1].Header.Height),

View File

@@ -119,7 +119,7 @@ func (c *ClientDatabase) FetchAsync(ctx context.Context, from, to int64, ch chan
// send blocks to subscription channel
if err := subscription.Send(ctx, data); err != nil {
logger.ErrorContext(ctx, "failed while dispatch block",
logger.WarnContext(ctx, "failed while dispatch block",
slogx.Error(err),
slogx.Int64("start", data[0].Header.Height),
slogx.Int64("end", data[len(data)-1].Header.Height),