Skip to content

Commit

Permalink
Merge pull request #2826 from atlanhq/startupChanges
Browse files Browse the repository at this point in the history
Startup changes
  • Loading branch information
aarshi0301 authored Feb 2, 2024
2 parents 6505feb + 130acc5 commit db7c883
Show file tree
Hide file tree
Showing 4 changed files with 218 additions and 70 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,10 @@ public synchronized void init(Properties props, String appType) {
List<AuditHandler> providers = new ArrayList<AuditHandler>();

for (Object propNameObj : props.keySet()) {
LOG.info("AUDIT PROPERTY: " + propNameObj.toString() + "="
+ props.getProperty(propNameObj.toString()));
if (LOG.isDebugEnabled()){
LOG.debug("AUDIT PROPERTY: " + propNameObj.toString() + "="
+ props.getProperty(propNameObj.toString()));
}
}

// Process new audit configurations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ public class GraphTransactionAdvisor extends AbstractPointcutAdvisor {
private final StaticMethodMatcherPointcut pointcut = new StaticMethodMatcherPointcut() {
@Override
public boolean matches(Method method, Class<?> targetClass) {
return method.isAnnotationPresent(GraphTransaction.class);
boolean annotationPresent = method.isAnnotationPresent(GraphTransaction.class);
if (annotationPresent) {
if (LOG.isDebugEnabled()){
LOG.debug("GraphTransaction intercept for {}.{}", targetClass.getName(), method.getName());
}
}
return annotationPresent;
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ public class DTORegistry {
@Inject
public DTORegistry(Set<DataTransferObject> availableDTOs) {
for (DataTransferObject availableDTO : availableDTOs) {
LOG.info("Registering DTO: {}", availableDTO.getClass().getSimpleName());
if (LOG.isDebugEnabled()){
LOG.debug("Registering DTO: {}", availableDTO.getClass().getSimpleName());
}
registerDTO(availableDTO);
}
}
Expand Down
Loading

0 comments on commit db7c883

Please sign in to comment.