Skip to content

Commit

Permalink
chore: make memory queue log with the debug level
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertIndie committed Nov 2, 2024
1 parent 969b562 commit 486eb4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/contube/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (f *MemoryQueueFactory) getOrCreateChan(name string) chan Record {
f.mu.Lock()
defer f.mu.Unlock()
defer func() {
slog.InfoContext(f.ctx, "Get memory queue chan",
slog.DebugContext(f.ctx, "Get memory queue chan",
"current_use_count", atomic.LoadInt32(&f.queues[name].refCnt),
"name", name)
}()
Expand All @@ -72,7 +72,7 @@ func (f *MemoryQueueFactory) release(name string) {
close(q.c)
delete(f.queues, name)
}
slog.InfoContext(f.ctx, "Released memory queue",
slog.DebugContext(f.ctx, "Released memory queue",
"current_use_count", atomic.LoadInt32(&q.refCnt),
"name", name)
}
Expand Down

0 comments on commit 486eb4b

Please sign in to comment.