Skip to content

Commit 869782b

Browse files
committed
s/Info/Debug/ logs
1 parent 2f86f81 commit 869782b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

coderd/notifications/manager.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func (m *Manager) WithHandlers(reg map[database.NotificationMethod]Handler) {
139139
// Manager requires system-level permissions to interact with the store.
140140
// Run is only intended to be run once.
141141
func (m *Manager) Run(ctx context.Context) {
142-
m.log.Info(ctx, "notification manager started")
142+
m.log.Debug(ctx, "notification manager started")
143143

144144
m.runOnce.Do(func() {
145145
// Closes when Stop() is called or context is canceled.
@@ -157,7 +157,7 @@ func (m *Manager) Run(ctx context.Context) {
157157
func (m *Manager) loop(ctx context.Context) error {
158158
defer func() {
159159
close(m.done)
160-
m.log.Info(context.Background(), "notification manager stopped")
160+
m.log.Debug(context.Background(), "notification manager stopped")
161161
}()
162162

163163
m.mu.Lock()
@@ -359,7 +359,7 @@ func (m *Manager) Stop(ctx context.Context) error {
359359
}
360360
m.closed = true
361361

362-
m.log.Info(context.Background(), "graceful stop requested")
362+
m.log.Debug(context.Background(), "graceful stop requested")
363363

364364
// If the notifier hasn't been started, we don't need to wait for anything.
365365
// This is only really during testing when we want to enqueue messages only but not deliver them.
@@ -388,7 +388,7 @@ func (m *Manager) Stop(ctx context.Context) error {
388388
m.log.Error(context.Background(), "graceful stop failed", slog.F("err", errStr))
389389
return ctx.Err()
390390
case <-m.done:
391-
m.log.Info(context.Background(), "gracefully stopped")
391+
m.log.Debug(context.Background(), "gracefully stopped")
392392
return nil
393393
}
394394
}

0 commit comments

Comments
 (0)