diff --git a/core/trino-main/src/main/java/io/trino/server/security/oauth2/NimbusOAuth2Client.java b/core/trino-main/src/main/java/io/trino/server/security/oauth2/NimbusOAuth2Client.java index 9860703bdf59..fcb985d60223 100644 --- a/core/trino-main/src/main/java/io/trino/server/security/oauth2/NimbusOAuth2Client.java +++ b/core/trino-main/src/main/java/io/trino/server/security/oauth2/NimbusOAuth2Client.java @@ -378,7 +378,7 @@ private Optional queryUserInfo(String accessToken) try { UserInfoResponse response = httpClient.execute(new UserInfoRequest(userinfoUrl.get(), new BearerAccessToken(accessToken)), UserInfoResponse::parse); if (!response.indicatesSuccess()) { - LOG.error("Received bad response from userinfo endpoint: " + response.toErrorResponse().getErrorObject()); + LOG.error("Received bad response from userinfo endpoint: %s", response.toErrorResponse().getErrorObject()); return Optional.empty(); } return Optional.of(response.toSuccessResponse().getUserInfo().toJWTClaimsSet()); diff --git a/plugin/trino-hive/src/main/java/io/trino/plugin/hive/s3/TrinoS3FileSystem.java b/plugin/trino-hive/src/main/java/io/trino/plugin/hive/s3/TrinoS3FileSystem.java index d07446ff6920..9855ccb5a7da 100644 --- a/plugin/trino-hive/src/main/java/io/trino/plugin/hive/s3/TrinoS3FileSystem.java +++ b/plugin/trino-hive/src/main/java/io/trino/plugin/hive/s3/TrinoS3FileSystem.java @@ -1134,7 +1134,7 @@ private AWSCredentialsProvider createAwsCredentialsProvider(URI uri, Configurati region = regionProviderChain.getRegion(); } catch (SdkClientException ex) { - log.warn("Falling back to default AWS region " + US_EAST_1); + log.warn("Falling back to default AWS region %s", US_EAST_1); region = US_EAST_1.getName(); } } diff --git a/plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergMetadata.java b/plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergMetadata.java index 3dadd09d8f29..fc8617db63c5 100644 --- a/plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergMetadata.java +++ b/plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergMetadata.java @@ -1310,7 +1310,7 @@ public void executeRemoveOrphanFiles(ConnectorSession session, IcebergTableExecu IcebergSessionProperties.REMOVE_ORPHAN_FILES_MIN_RETENTION); if (table.currentSnapshot() == null) { - log.debug("Skipping remove_orphan_files procedure for empty table " + table); + log.debug("Skipping remove_orphan_files procedure for empty table %s", table); return; } diff --git a/plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/catalog/BaseTrinoCatalogTest.java b/plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/catalog/BaseTrinoCatalogTest.java index 3d78d6916061..9cbf6e6e098d 100644 --- a/plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/catalog/BaseTrinoCatalogTest.java +++ b/plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/catalog/BaseTrinoCatalogTest.java @@ -311,7 +311,7 @@ public void testView() catalog.dropNamespace(SESSION, namespace); } catch (Exception e) { - LOG.warn("Failed to clean up namespace: " + namespace); + LOG.warn("Failed to clean up namespace: %s", namespace); } } }