mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 05:02:58 +03:00
[PR #942] [MERGED] feat: add support for LOG_LEVEL env variable
#551
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pocket-id/pocket-id/pull/942
Author: @stonith404
Created: 9/13/2025
Status: ✅ Merged
Merged: 9/14/2025
Merged by: @ItalyPaleAle
Base:
main← Head:feat/log-level📝 Commits (4)
c978085feat: add support forLOG_LEVELenv variable9348abbcorrectly match pathsc75d5b0use prefix matching instead of regex496c622add validation and to lower for LOG_LEVEL📊 Changes
6 files changed (+54 additions, -48 deletions)
View changed files
📝
backend/go.mod(+2 -2)📝
backend/go.sum(+2 -2)📝
backend/internal/bootstrap/db_bootstrap.go(+7 -6)📝
backend/internal/bootstrap/observability_boostrap.go(+7 -14)📝
backend/internal/bootstrap/router_bootstrap.go(+28 -24)📝
backend/internal/common/env_config.go(+8 -0)📄 Description
This PR adds support for the
LOG_LEVELenv variable. Additionally a few improvements were made:github.com/samber/slog-ginwithgithub.com/gin-contrib/slogTextHandlerand usetint.Handlerbut without color if the output isn't a terminalCloses #294
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.