Skip to content

Commit

Permalink
logging: decrease logging level for empty optional vars from WARN to …
Browse files Browse the repository at this point in the history
…DEBUG

To avoid drowing real WARN messages.  Many optional vars can be valid if empty.
  • Loading branch information
tlvu committed Feb 23, 2024
1 parent eaa09c2 commit d69088b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@
[Unreleased](https://github.com/bird-house/birdhouse-deploy/tree/master) (latest)
------------------------------------------------------------------------------------------------------------------

[//]: # (list changes here, using '-' for each new entry, remove this when items are added)
## Changes

- logging: decrease logging level for empty optional vars from WARN to DEBUG

To avoid drowing real WARN messages. Many optional vars can be valid if empty.


[2.1.0](https://github.com/bird-house/birdhouse-deploy/tree/2.1.0) (2024-02-23)
------------------------------------------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion birdhouse/read-configs.include.sh
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ check_default_vars() {
result=`echo "${d}" | grep -c "${default}"`
if [ -z "`eval "echo ${v}"`" ]
then
log WARN "Optional variable [${n}] is not set. Check env.local file."
log DEBUG "Optional variable [${n}] is not set. Check env.local file."
fi
if [ "${result}" -gt 0 ]
then
Expand Down

0 comments on commit d69088b

Please sign in to comment.