Manager: reduce log levels

This commit is contained in:
Sybren A. Stüvel 2022-03-17 11:47:53 +01:00
parent ec77de886b
commit c5a2a23f6e
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ func WorkerAuth(ctx context.Context, authInfo *openapi3filter.AuthenticationInpu
// Fetch username & password from the HTTP header. // Fetch username & password from the HTTP header.
u, p, ok := req.BasicAuth() u, p, ok := req.BasicAuth()
logger.Debug().Interface("scheme", authInfo.SecuritySchemeName).Str("user", u).Msg("authenticator") logger.Trace().Interface("scheme", authInfo.SecuritySchemeName).Str("user", u).Msg("authenticator")
if !ok { if !ok {
return authInfo.NewError(errors.New("no auth header found")) return authInfo.NewError(errors.New("no auth header found"))
} }

View File

@ -23,7 +23,7 @@ var (
// NOTE: this does not also fetch returnedTask.Worker, but returnedTask.WorkerID is set. // NOTE: this does not also fetch returnedTask.Worker, but returnedTask.WorkerID is set.
func (db *DB) ScheduleTask(ctx context.Context, w *Worker) (*Task, error) { func (db *DB) ScheduleTask(ctx context.Context, w *Worker) (*Task, error) {
logger := log.With().Str("worker", w.UUID).Logger() logger := log.With().Str("worker", w.UUID).Logger()
logger.Debug().Msg("finding task for worker") logger.Trace().Msg("finding task for worker")
// Run two queries in one transaction: // Run two queries in one transaction:
// 1. find task, and // 1. find task, and