Skip to content

Commit

Permalink
Fixed smells
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-barchi committed Aug 30, 2023
1 parent 7758615 commit 5295e30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public HttpResponseMessage getTaxonomy(
if(!version.equalsIgnoreCase(VersionEnum.STANDARD.toString()) &&
!version.equalsIgnoreCase(VersionEnum.TOPICFLAG.toString())) {

logger.info(AppMessageUtil.getMessage(VERSION_NOT_EXISTS_ERROR));
logger.info(VERSION_NOT_EXISTS_ERROR);
String payload = AppUtil.getPayload(getObjectMapper(), ErrorMessage.builder()
.message(AppMessageUtil.getMessage(GENERIC_RETRIEVAL_ERROR))
.error(VERSION_NOT_EXISTS_ERROR)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void run(
logger.info("Taxonomy updated successfully");

} catch (AppException e) {
logger.log(Level.SEVERE,MessageFormat.format("[ALERT][Update-Triggered] AppException at {0}\n {1}",Instant.now().toString(), ExceptionUtils.getStackTrace(e)));
logger.log(Level.SEVERE,MessageFormat.format("[ALERT][Update-Triggered] AppException at {0}\n {1}",Instant.now(), ExceptionUtils.getStackTrace(e)));

} catch (Exception e) {
logger.log(Level.SEVERE,MessageFormat.format("[ALERT][Update-Triggered] Generic error at {0}\n {1}",Instant.now(), ExceptionUtils.getStackTrace(e)));
Expand Down

0 comments on commit 5295e30

Please sign in to comment.