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 22, 2025
1 parent 6246f75 commit 9d90243
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:?}"),
);
}

Expand Down

0 comments on commit 9d90243

Please sign in to comment.