[Phrase] Translation Updates - 2026-03-16#35321
[Phrase] Translation Updates - 2026-03-16#35321webops-guacbot[bot] wants to merge 1 commit intophrase-translations-stagingfrom
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 495431ec3c
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| FORMAT = ('%(asctime)s %(levelname)s [%(name)s] [%(filename)s:%(lineno)d] ' | ||
| '[dd.service=%(dd.service)s dd.env=%(dd.env)s dd.version=%(dd.version)s dd.trace_id=%(dd.trace_id)s dd.span_id=%(dd.span_id)s] ' | ||
| '- %(message)s') | ||
| logging.basicConfig(filename=f'/home/LogFiles/app-{os.getenv(COMPUTERNAME)}.log', format=FORMAT) |
There was a problem hiding this comment.
Quote COMPUTERNAME in Python logging example
The Python sample uses os.getenv(COMPUTERNAME), but COMPUTERNAME is treated as a variable name, not an environment-variable key, so the snippet raises NameError when users run it. Because this code is presented as a runnable App Service example, the key should be passed as a string (for example, os.getenv("COMPUTERNAME")) so log file naming works as documented.
Useful? React with 👍 / 👎.
Automated translation updates from Phrase