Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Load settings earlier because they are needed by the logger #65

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ChillerDragon
Copy link
Member

problem is that the logger depends on config vars for post logs dir
and config var loading depends on logger for error logging

add a set -u to witness the error

@ChillerDragon ChillerDragon marked this pull request as draft November 21, 2024 02:25
@ChillerDragon
Copy link
Member Author

here the logger uses a config

if [ "$CFG_POST_LOGS_DIR" == "" ]

but the settings file that loads the config variables also needs error logging
ideally it would be able to post errors to the web in case of config errors

err "ERROR: tem settings file not found"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant