Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Check LOGGING env-var for "true" - #78

Merged
Lukas Cenovsky (lucen-ms) merged 1 commit into
microsoft:mainfrom
grav:grav/check-logging-setting
Feb 12, 2025
Merged

Check LOGGING env-var for "true"#78
Lukas Cenovsky (lucen-ms) merged 1 commit into
microsoft:mainfrom
grav:grav/check-logging-setting

Conversation

@grav

@grav Mikkel Gravgaard (grav) commented Jan 9, 2025

Copy link
Copy Markdown
Contributor

LOGGING env var should be exlicitly set to "true", in order to log requests.

Currently it just needs to be truethy, which doesn't correspond with the the current default value in the example .env.local file (where it's "false").
Explicit "true" is also how other env-vars are checked, eg

if (process.env.LOG_INVALID_JSON_REQUESTS === "true") {

LOGGING env var should be exlicitly set to "true", in order to log requests. 

Currently it just needs to be truethy, which doesn't correspond with the docs, OR the current default value in the example .env.local file (where it's "false").
@lucen-ms
Lukas Cenovsky (lucen-ms) merged commit 2330e45 into microsoft:main Feb 12, 2025
@lucen-ms

Copy link
Copy Markdown
Collaborator

Mikkel Gravgaard (@grav) thank you for your contribution.

Ronaldo Junior (itujo) pushed a commit to Idea-Maker/code-push-server that referenced this pull request Feb 21, 2025
LOGGING env var should be exlicitly set to "true", in order to log
requests.

Currently it just needs to be truethy, which doesn't correspond with the
the current default value in the example .env.local file (where it's
"false").
Explicit "true" is also how other env-vars are checked, eg
https://github.com/microsoft/code-push-server/blob/08e97d751620ad7867bb0c9b94633e94f2c01c68/api/script/default-server.ts#L110
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants