From 0d194c0397811f3e8327683ef29bc074950918d8 Mon Sep 17 00:00:00 2001 From: Angel Botev Date: Tue, 27 Aug 2019 12:10:13 +0300 Subject: [PATCH] Add log messages; Signed-off-by: Angel Botev --- .../repositories/AccountRepositoryAdditionalImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/biz/nynja/account/repositories/AccountRepositoryAdditionalImpl.java b/src/main/java/biz/nynja/account/repositories/AccountRepositoryAdditionalImpl.java index 58444d3..ee5c7e4 100644 --- a/src/main/java/biz/nynja/account/repositories/AccountRepositoryAdditionalImpl.java +++ b/src/main/java/biz/nynja/account/repositories/AccountRepositoryAdditionalImpl.java @@ -167,7 +167,7 @@ public class AccountRepositoryAdditionalImpl implements AccountRepositoryAdditio return null; } } catch (StatusRuntimeException e) { - logger.info("Error while lose connection with bridge: {}", e.getMessage()); + logger.error("Error while lose connection with bridge: {}", e.getMessage(), e.getCause()); sagaTransaction.rollBack(); return null; } catch (IllegalArgumentException | IllegalStateException e) { @@ -270,7 +270,7 @@ public class AccountRepositoryAdditionalImpl implements AccountRepositoryAdditio return null; } } catch (StatusRuntimeException e) { - logger.info("Error while lose connection with bridge: {}", e.getMessage()); + logger.error("Error while lose connection with bridge: {}", e.getMessage(), e.getCause()); sagaTransaction.rollBack(); return null; } catch (IllegalArgumentException | IllegalStateException e) { @@ -381,7 +381,7 @@ public class AccountRepositoryAdditionalImpl implements AccountRepositoryAdditio return false; } } catch (StatusRuntimeException e) { - logger.info("Error while lose connection with bridge: {}", e.getMessage()); + logger.error("Error while lose connection with bridge: {}", e.getMessage(), e.getCause()); sagaTransaction.rollBack(); return false; } catch (IllegalArgumentException | IllegalStateException e) { @@ -571,7 +571,7 @@ public class AccountRepositoryAdditionalImpl implements AccountRepositoryAdditio return Optional.of(Cause.ERROR_DELETING_PROFILE); } } catch (StatusRuntimeException e) { - logger.info("Error while lose connection with bridge: {}", e.getMessage()); + logger.error("Error while lose connection with bridge: {}", e.getMessage(), e.getCause()); sagaTransaction.rollBack(); return Optional.of(Cause.ERROR_DELETING_PROFILE); } catch (IllegalArgumentException | IllegalStateException e) { -- GitLab