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

Conversation

@grav
Copy link
Contributor

@grav grav commented Jan 9, 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

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 lucen-ms merged commit 2330e45 into microsoft:main Feb 12, 2025
1 check passed
@lucen-ms
Copy link
Collaborator

@grav thank you for your contribution.

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