Skip to content

Conversation

@pbrisbin
Copy link
Member

@pbrisbin pbrisbin commented Mar 7, 2025

There is a bug1 in the development version of Amazonka, which we have
to use to get latest GHC support, that causes newEnv to perform a slow
DNS lookup, attempting to see if it's being run on an EC2 instance.

Since this happens early, before any logging, it can appear our CLIs are
stuck for about 30s without any output. And bumping LOG_LEVEL doesn't
help. Adding a message here will at least provide some feedback, while
we seek to address this for real.

Footnotes

  1. https://github.com/brendanhay/amazonka/issues/1018

There is a bug[^1] in the development version of Amazonka, which we have
to use to get latest GHC support, that causes `newEnv` to perform a slow
DNS lookup, attempting to see if it's being run on an EC2 instance.

Since this happens early, before any logging, it can appear our CLIs are
stuck for about 30s without any output. And bumping `LOG_LEVEL` doesn't
help. Adding a message here will at least provide *some* feedback, while
we seek to address this for real.

[^1]: brendanhay/amazonka#1018
@pbrisbin pbrisbin requested review from a team and joris974 and removed request for a team March 7, 2025 15:12
@pbrisbin pbrisbin enabled auto-merge (rebase) March 7, 2025 15:12
@joris974 joris974 requested review from joelmccracken and removed request for joris974 March 7, 2025 20:47
This fixes the slow-down in `discover`: brendanhay/amazonka/#1029.
@pbrisbin pbrisbin merged commit 294140b into main Mar 10, 2025
5 checks passed
@pbrisbin pbrisbin deleted the pb/log-debug branch March 10, 2025 20:03
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.

3 participants