Skip to content

[logger] Fix disable_cloud_logging for global resolver - #1020

Merged
manugarg merged 4 commits into
mainfrom
logger-fix
Feb 27, 2025
Merged

manugarg merged 4 commits into
mainfrom
logger-fix

Conversation

@manugarg

@manugarg manugarg commented Feb 27, 2025 •

Copy link
Copy Markdown
Contributor
  • targets.globalResolver get initialized in init() which means that it will get initialized before flags are parsed, making --disable_cloud_logging ineffective. This PR moves globalResolver initialization out of init(). See DisableCloudLogging doesn't seem to work when deployed to railway #1016 for manifestation of this issue.
  • While here, also move a bunch of stuff out of logger's init.

@manugarg manugarg changed the title [logger] Get rid of init() in targets and logger [logger] Fix disable_cloud_logging for global resolver Feb 27, 2025
@manugarg
manugarg merged commit bcabe76 into main Feb 27, 2025
@manugarg
manugarg deleted the logger-fix branch February 27, 2025 20:33
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