Skip to content

Commit 154b539

Browse files
authored
chore: reduce logs noise (#316)
Signed-off-by: Matheus Pimenta <[email protected]>
1 parent 9b380ea commit 154b539

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

internal/http/response.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,11 @@ func observeRequest(r *http.Request, statusCode int, err error, errResp ...any)
172172

173173
switch {
174174
case statusCode < 400:
175-
l.Info("request")
175+
if strings.HasSuffix(r.URL.Path, "/token") || strings.HasSuffix(r.URL.Path, "/identity") {
176+
l.Info("request")
177+
} else {
178+
l.Debug("request")
179+
}
176180
case statusCode < 500:
177181
l.Info("client error")
178182
default:

versions.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
2222

23-
helm: 0.13.2
24-
timoni: 0.13.2
25-
container: 0.13.2
23+
helm: 0.13.3
24+
timoni: 0.13.3
25+
container: 0.13.3

0 commit comments

Comments
 (0)