Skip to content

Commit

Permalink
Increase log level for max recursion depth check (#107)
Browse files Browse the repository at this point in the history
This updates the log level from `Debug` to `Warn` for cases when the processor 
does not load a type due to reaching max recursion depth.

---
Signed-off-by: zirain <[email protected]>
  • Loading branch information
zirain authored Oct 17, 2024
1 parent 9d642f0 commit 249e65f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion processor/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ func (p *processor) processType(pkg *loader.Package, parentType *types.Type, t g
}

if depth > p.maxDepth {
zap.S().Debugw("Not loading type due to reaching max recursion depth", "type", t.String())
zap.S().Warnw("Not loading type due to reaching max recursion depth", "type", t.String())
typeDef.Kind = types.UnknownKind
return typeDef
}
Expand Down

0 comments on commit 249e65f

Please sign in to comment.