|
60 | 60 | @Transactional |
61 | 61 | public class ConnectionFacadeImpl implements ConnectionFacade { |
62 | 62 |
|
63 | | - private static final Logger logger = LoggerFactory.getLogger(ConnectionFacadeImpl.class); |
| 63 | + private static final Logger log = LoggerFactory.getLogger(ConnectionFacadeImpl.class); |
64 | 64 |
|
65 | 65 | private final ConnectionDefinitionService connectionDefinitionService; |
66 | 66 | private final ConnectionService connectionService; |
@@ -120,8 +120,8 @@ public long create(ConnectionDTO connectionDTO, PlatformType type) { |
120 | 120 | CLIENT_SECRET, predefinedParameters.get(CLIENT_SECRET))); |
121 | 121 | } |
122 | 122 |
|
123 | | - if (logger.isWarnEnabled() && !connection.containsParameter(Authorization.REFRESH_TOKEN)) { |
124 | | - logger.warn( |
| 123 | + if (log.isWarnEnabled() && !connection.containsParameter(Authorization.REFRESH_TOKEN)) { |
| 124 | + log.warn( |
125 | 125 | "OAuth2 authorization code connection for component {} does not contain refresh token", |
126 | 126 | connection.getComponentName()); |
127 | 127 | } |
@@ -177,7 +177,7 @@ public Integer executeConnectionRefresh(Long connectionId) { |
177 | 177 |
|
178 | 178 | Map<String, ?> parameters = connection.getParameters(); |
179 | 179 |
|
180 | | - logger.info("Executed connection refresh for connection with connectionId: {}", connectionId); |
| 180 | + log.info("Executed connection refresh for connection with connectionId: {}", connectionId); |
181 | 181 |
|
182 | 182 | return (Integer) parameters.get("expires_in"); |
183 | 183 | } |
@@ -298,7 +298,7 @@ private List<ConnectionDTO> getConnections(List<Connection> connections) { |
298 | 298 | isConnectionUsed(Validate.notNull(connection.getId(), "id"), connection.getType()), connection, |
299 | 299 | filterTags(tags, connection)); |
300 | 300 | } catch (Exception e) { |
301 | | - logger.error(e.getMessage()); |
| 301 | + log.error(e.getMessage()); |
302 | 302 |
|
303 | 303 | return null; |
304 | 304 | } |
@@ -354,8 +354,8 @@ private String getBaseUri( |
354 | 354 | uri = connectionDefinitionService.executeBaseUri(componentName, componentConnection) |
355 | 355 | .orElse(null); |
356 | 356 | } catch (IllegalStateException e) { |
357 | | - if (logger.isDebugEnabled()) { |
358 | | - logger.debug(e.getMessage()); |
| 357 | + if (log.isDebugEnabled()) { |
| 358 | + log.debug(e.getMessage()); |
359 | 359 | } |
360 | 360 | } |
361 | 361 |
|
|
0 commit comments