Skip to content

Commit

Permalink
reduce resourceLog.blockDepth on Exit method (#56)
Browse files Browse the repository at this point in the history
Issue #, if available: aws-controllers-k8s/community#1001

Description of changes:
* reducing blockDepth on Exit method
* Tested locally that it fixes resourceLogger

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • Loading branch information
vijtrip2 authored Oct 6, 2021
1 parent 4a3d4c7 commit 2991a6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/runtime/log/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ func (rl *ResourceLogger) Exit(
}
vals := expandResourceFields(rl.res, additionalValues...)
rl.log.V(1).Info(msg, vals...)
rl.blockDepth--
}
}

Expand Down

0 comments on commit 2991a6b

Please sign in to comment.