Skip to content

Commit 403a675

Browse files
committed
Fix debug logging for fallback structs
1 parent 06aea64 commit 403a675

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/gen/golang.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ func (c *LekkoClient) {{$.FuncName}}({{$.ArgumentString}}) *{{$.RetType}} {
419419
if !errors.Is(err, client.ErrNoOpProvider) {
420420
debug.LogError("Lekko evaluation error", "name", "{{$.Namespace}}/{{$.Key}}", "err", err)
421421
}
422-
debug.LogDebug("Lekko fallback", "name", "{{$.Namespace}}/{{$.Key}}", "result", result)
422+
debug.LogDebug("Lekko fallback", "name", "{{$.Namespace}}/{{$.Key}}", "result", ret)
423423
return ret
424424
}`,
425425
private: `// {{$.Description}}

0 commit comments

Comments
 (0)