Skip to content

Commit 7809130

Browse files
nikolinaspeharigorbeslic
authored andcommitted
1055 - renamed logger to log
1 parent dcef0e6 commit 7809130

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

  • server/libs/platform/platform-connection/platform-connection-service/src/main/java/com/bytechef/platform/connection/facade

server/libs/platform/platform-connection/platform-connection-service/src/main/java/com/bytechef/platform/connection/facade/ConnectionFacadeImpl.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
@Transactional
6161
public class ConnectionFacadeImpl implements ConnectionFacade {
6262

63-
private static final Logger logger = LoggerFactory.getLogger(ConnectionFacadeImpl.class);
63+
private static final Logger log = LoggerFactory.getLogger(ConnectionFacadeImpl.class);
6464

6565
private final ConnectionDefinitionService connectionDefinitionService;
6666
private final ConnectionService connectionService;
@@ -120,8 +120,8 @@ public long create(ConnectionDTO connectionDTO, PlatformType type) {
120120
CLIENT_SECRET, predefinedParameters.get(CLIENT_SECRET)));
121121
}
122122

123-
if (logger.isWarnEnabled() && !connection.containsParameter(Authorization.REFRESH_TOKEN)) {
124-
logger.warn(
123+
if (log.isWarnEnabled() && !connection.containsParameter(Authorization.REFRESH_TOKEN)) {
124+
log.warn(
125125
"OAuth2 authorization code connection for component {} does not contain refresh token",
126126
connection.getComponentName());
127127
}
@@ -177,7 +177,7 @@ public Integer executeConnectionRefresh(Long connectionId) {
177177

178178
Map<String, ?> parameters = connection.getParameters();
179179

180-
logger.info("Executed connection refresh for connection with connectionId: {}", connectionId);
180+
log.info("Executed connection refresh for connection with connectionId: {}", connectionId);
181181

182182
return (Integer) parameters.get("expires_in");
183183
}
@@ -298,7 +298,7 @@ private List<ConnectionDTO> getConnections(List<Connection> connections) {
298298
isConnectionUsed(Validate.notNull(connection.getId(), "id"), connection.getType()), connection,
299299
filterTags(tags, connection));
300300
} catch (Exception e) {
301-
logger.error(e.getMessage());
301+
log.error(e.getMessage());
302302

303303
return null;
304304
}
@@ -354,8 +354,8 @@ private String getBaseUri(
354354
uri = connectionDefinitionService.executeBaseUri(componentName, componentConnection)
355355
.orElse(null);
356356
} catch (IllegalStateException e) {
357-
if (logger.isDebugEnabled()) {
358-
logger.debug(e.getMessage());
357+
if (log.isDebugEnabled()) {
358+
log.debug(e.getMessage());
359359
}
360360
}
361361

0 commit comments

Comments
 (0)