[배치] log -> safeLogger 로 수정
This commit is contained in:
@@ -11,7 +11,6 @@ import org.springframework.stereotype.Component;
|
|||||||
|
|
||||||
@Component
|
@Component
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@Slf4j
|
|
||||||
public class BatchLogRunner {
|
public class BatchLogRunner {
|
||||||
SafeLogger safeLogger = new SafeLogger(LoggerFactory.getLogger(BatchLogRunner.class));
|
SafeLogger safeLogger = new SafeLogger(LoggerFactory.getLogger(BatchLogRunner.class));
|
||||||
|
|
||||||
@@ -29,7 +28,7 @@ public class BatchLogRunner {
|
|||||||
hostName = java.net.InetAddress.getLocalHost().getHostName();
|
hostName = java.net.InetAddress.getLocalHost().getHostName();
|
||||||
} catch (UnknownHostException e) {
|
} catch (UnknownHostException e) {
|
||||||
hostName = "UNKNOWN";
|
hostName = "UNKNOWN";
|
||||||
log.warn("호스트 이름 조회 실패", e);
|
safeLogger.warn("호스트 이름 조회 실패", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 실행 로그 insert (RUNNING)
|
// 실행 로그 insert (RUNNING)
|
||||||
|
|||||||
Reference in New Issue
Block a user