mirror of
https://github.com/feeddeck/feeddeck.git
synced 2026-03-09 15:12:10 -05:00
[PR #128] [MERGED] [core] Make Log Level Configurable #129
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/feeddeck/feeddeck/pull/128
Author: @ricoberger
Created: 2/2/2024
Status: ✅ Merged
Merged: 2/2/2024
Merged by: @ricoberger
Base:
main← Head:core-make-log-level-configurable📝 Commits (1)
57e19c4[core] Make Log Level Configurable📊 Changes
6 files changed (+40 additions, -3 deletions)
View changed files
📝
supabase/.env.example(+2 -0)📝
supabase/functions/_cmd/tools/tools.ts(+1 -0)📝
supabase/functions/_cmd/worker/worker.ts(+1 -0)📝
supabase/functions/_shared/feed/utils/getAndParseFeed.ts(+6 -3)📝
supabase/functions/_shared/utils/constants.ts(+3 -0)📝
supabase/functions/_shared/utils/log.ts(+27 -0)📄 Description
The log level is now configurable, via the
FEEDDECK_LOG_LEVELenvironment variable. The environment variable can have the following values:debug,info,warningorerror.With this change we also only log the response when getting and parsing the feed fails when the log level is set to
debug, also when the actual message is still an error. This should reduce the noice in the logs a lot and allows us to specially turn this on while debugging.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.