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

Add new env var DIRENV_LOG_VERBOSE to configure logging of export diff #1231

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

Conversation

hlubek
Copy link

@hlubek hlubek commented Jan 19, 2024

See #68 .

This change adds a new env var that can be set to DIRENV_LOG_VERBOSE=0 to make the logging of exported variables much quieter (single line).

If logging should be completely disabled, the existing var can be set to DIRENV_LOG_FORMAT=, but this will disable all logging.

@jankatins jankatins mentioned this pull request Feb 12, 2024
@jankatins
Copy link

jankatins commented Feb 12, 2024

#1234 has been merged (so this has merge conflicts) which can be used to hide the diff completely (but no counts like this PR)

Copy link
Member

@zimbatm zimbatm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move the config to the config file? I'm trying to move away from using env vars to configure direnv.

Otherwise looks good on principle.

@sudoforge
Copy link

sudoforge commented Apr 15, 2024

Can you move the config to the config file? I'm trying to move away from using env vars to configure direnv.

Otherwise looks good on principle.

actually, i'd prefer to have this be configurable in a specific .envrc (using use_flake which outputs quite a few lines of env changes). #1234 doesn't provide for that use case, but this does. what would be a happy medium?

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

Successfully merging this pull request may close these issues.

None yet

5 participants