MonitoringProperty 로거 추가
This commit is contained in:
+5
@@ -2,6 +2,7 @@ package com.eactive.eai.rms.data.entity.man.monitoringProperty.service;
|
|||||||
|
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
@@ -14,6 +15,7 @@ import com.querydsl.core.types.dsl.BooleanExpression;
|
|||||||
|
|
||||||
@Service
|
@Service
|
||||||
@Transactional
|
@Transactional
|
||||||
|
@Slf4j
|
||||||
public class MonitoringPropertyService
|
public class MonitoringPropertyService
|
||||||
extends AbstractDataService<MonitoringProperty, MonitoringPropertyId, MonitoringPropertyRepository> {
|
extends AbstractDataService<MonitoringProperty, MonitoringPropertyId, MonitoringPropertyRepository> {
|
||||||
|
|
||||||
@@ -44,9 +46,12 @@ public class MonitoringPropertyService
|
|||||||
if (property.isPresent()) {
|
if (property.isPresent()) {
|
||||||
String value = property.get().getPrpty2Val();
|
String value = property.get().getPrpty2Val();
|
||||||
if (value != null && !value.isEmpty()) {
|
if (value != null && !value.isEmpty()) {
|
||||||
|
log.debug("getPropertyValue - {} : {}", prptyName, value);
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.debug("getPropertyValue - {} : {} (defaultValue)", prptyName, defaultValue);
|
||||||
return defaultValue;
|
return defaultValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user