Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[COR-666] Improve logging and errors in trunk registry #285

Merged
merged 7 commits into from
Apr 27, 2023
Merged

Conversation

ianstanton
Copy link
Member

@ianstanton ianstanton commented Apr 26, 2023

Improves logging in trunk registry and error responses to CLI. Example logs:

[2023-04-26T19:11:59Z INFO  aws_config::meta::region] load_region; provider=EnvironmentVariableRegionProvider { env: Env(Real) }
[2023-04-26T19:11:59Z INFO  aws_config::meta::region] load_region; provider=ProfileFileRegionProvider { provider_config: ProviderConfig { env: Env(Real), fs: Fs(Real), sleep: Some(TokioSleep), region: None } }
[2023-04-26T19:11:59Z INFO  aws_config::meta::region] load_region; provider=ImdsRegionProvider { client: LazyClient { client: OnceCell { value: None }, builder: Builder { max_attempts: None, endpoint: None, mode_override: None, token_ttl: None, connect_timeout: None, read_timeout: None, config: Some(ProviderConfig { env: Env(Real), fs: Fs(Real), sleep: Some(TokioSleep), region: None }) } }, env: Env(Real) }
[2023-04-26T19:12:00Z WARN  aws_config::imds::region] failed to load region from IMDS err=failed to load IMDS session token: dispatch failure: timeout: error trying to connect: HTTP connect timeout occurred after 1s: HTTP connect timeout occurred after 1s: timed out (FailedToLoadToken(FailedToLoadToken { source: DispatchFailure(DispatchFailure { source: ConnectorError { kind: Timeout, source: hyper::Error(Connect, HttpTimeoutError { kind: "HTTP connect", duration: 1s }), connection: Unknown } }) }))
[2023-04-26T19:12:00Z INFO  aws_config::meta::region] load_region; provider=EnvironmentVariableRegionProvider { env: Env(Real) }
[2023-04-26T19:12:00Z INFO  aws_config::meta::region] load_region; provider=ProfileFileRegionProvider { provider_config: ProviderConfig { env: Env(Real), fs: Fs(Real), sleep: Some(TokioSleep), region: None } }
[2023-04-26T19:12:00Z INFO  aws_config::meta::region] load_region; provider=ImdsRegionProvider { client: LazyClient { client: OnceCell { value: None }, builder: Builder { max_attempts: None, endpoint: None, mode_override: None, token_ttl: None, connect_timeout: None, read_timeout: None, config: Some(ProviderConfig { env: Env(Real), fs: Fs(Real), sleep: Some(TokioSleep), region: None }) } }, env: Env(Real) }
[2023-04-26T19:12:01Z WARN  aws_config::imds::region] failed to load region from IMDS err=failed to load IMDS session token: dispatch failure: timeout: error trying to connect: HTTP connect timeout occurred after 1s: HTTP connect timeout occurred after 1s: timed out (FailedToLoadToken(FailedToLoadToken { source: DispatchFailure(DispatchFailure { source: ConnectorError { kind: Timeout, source: hyper::Error(Connect, HttpTimeoutError { kind: "HTTP connect", duration: 1s }), connection: Unknown } }) }))
[2023-04-26T19:12:01Z INFO  sqlx::postgres::notice] relation "_sqlx_migrations" already exists, skipping
[2023-04-26T19:12:01Z INFO  actix_server::builder] starting 16 workers
[2023-04-26T19:12:01Z INFO  actix_server::server] Actix runtime found; starting in Actix runtime
[2023-04-26T19:13:51Z ERROR trunk_registry::publish] Authorization error
[2023-04-26T19:14:01Z INFO  trunk_registry::uploader] Uploading extension: ExtensionUpload { name: "bloom", vers: Version { major: 1, minor: 0, patch: 0 }, description: Some("bloom provides an index access method based on Bloom filters."), homepage: Some("https://www.postgresql.org"), documentation: Some("https://www.postgresql.org/docs/current/bloom.html"), license: Some("PostgreSQL"), repository: Some("https://github.com/postgres/postgres") }

@aws-amplify-us-east-1
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-285.d3q0v4ajtiq4fs.amplifyapp.com

@ianstanton ianstanton marked this pull request as ready for review April 26, 2023 19:15
@ianstanton ianstanton merged commit a99f395 into main Apr 27, 2023
@ianstanton ianstanton deleted the cor-666 branch April 27, 2023 14:07
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