Debug() ==> Trace()

Signed-off-by: Dave Lee <dave@gray101.com>
This commit is contained in:
Dave Lee 2024-05-14 02:45:24 -04:00
parent e0a1fb6e82
commit d418f3a22d
1 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ func App(cl *config.BackendConfigLoader, ml *model.ModelLoader, appConfig *confi
if apiKey != "" {
for key, endpoints := range appConfig.ApiKeys {
if apiKey == key {
log.Debug().Str("key", key).Str("fmtPath", fmtPath).Msg("found a matching api key, checking permissions for fmtPath")
log.Trace().Str("key", key).Str("fmtPath", fmtPath).Msg("found a matching api key, checking permissions for fmtPath")
if slices.Contains(endpoints, "*") || slices.Contains(endpoints, fmtPath) {
return c.Next()
}
@ -166,7 +166,7 @@ func App(cl *config.BackendConfigLoader, ml *model.ModelLoader, appConfig *confi
// Check if this is a default-allow endpoint
if defaultCaseExists && slices.Contains(appConfig.ApiKeys["_"], fmtPath) {
log.Debug().Str("fmtPath", fmtPath).Msg("matching authorization key not found, but fmtPath is on the default allow list")
log.Trace().Str("fmtPath", fmtPath).Msg("matching authorization key not found, but fmtPath is on the default allow list")
return c.Next()
}