Skip to content

Commit

Permalink
remove expiration warning
Browse files Browse the repository at this point in the history
  • Loading branch information
aykut-bozkurt committed Jan 24, 2025
1 parent a63acd5 commit a493016
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/object_store/object_store_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,10 @@ impl ObjectStoreWithExpiration {
let expired = expire_at < SystemTime::now();

if expired {
let expiration_warn_msg =
format!("credentials for {bucket} expired at {expire_at:?}");

let expiration_hint = "New credentials will be automatically retrieved if configured.\n\
Otherwise, please create a new postgres session to refresh the credentials.";

ereport!(
PgLogLevel::WARNING,
PgLogLevel::DEBUG2,
PgSqlErrorCode::ERRCODE_WARNING,
expiration_warn_msg,
expiration_hint,
format!("credentials for {bucket} expired at {expire_at:?}"),
);

Check warning on line 110 in src/object_store/object_store_cache.rs

View check run for this annotation

Codecov / codecov/patch

src/object_store/object_store_cache.rs#L106-L110

Added lines #L106 - L110 were not covered by tests
}

Expand Down

0 comments on commit a493016

Please sign in to comment.