Log stack traces with logger
[music.git] / src / main / java / org / onap / music / rest / RestMusicAdminAPI.java
index adcb658..fddeebf 100755 (executable)
@@ -5,6 +5,7 @@
  *  Copyright (c) 2017 AT&T Intellectual Property
  * ===================================================================
  * Modifications Copyright (C) 2018 IBM.
+ * Modifications Copyright (c) 2019 Samsung
  * ================================================================================
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -489,6 +490,7 @@ public class RestMusicAdminAPI {
         try {
          result = MusicCore.nonKeyRelatedPut(queryObject, "eventual");
         }catch(Exception ex) {
+            logger.error(EELFLoggerDelegate.errorLogger, ex);
             return false;
         }
         return true;