Arthur Bogaart pushed to branch master at cms-community / 
hippo-addon-channel-manager


Commits:
c66091ea by Bert Leunis at 2018-02-09T15:11:15+01:00
CHANNELMGR-1662 log also the stacktrace when logging a warning

It turned out there was only one occasion of Reason.SERVER_ERROR where the 
log.warn() did not log the stacktrace also. In a default hippo project log 
level is "warn", so this message should show up in the server log.

- - - - -
49ed8973 by Arthur Bogaart at 2018-02-12T14:31:20+01:00
CHANNELMGR-1662 Reintegrate feature/CHANNELMGR-1662

- - - - -


1 changed file:

- 
content-service/src/main/java/org/onehippo/cms/channelmanager/content/document/DocumentsServiceImpl.java


Changes:

=====================================
content-service/src/main/java/org/onehippo/cms/channelmanager/content/document/DocumentsServiceImpl.java
=====================================
--- 
a/content-service/src/main/java/org/onehippo/cms/channelmanager/content/document/DocumentsServiceImpl.java
+++ 
b/content-service/src/main/java/org/onehippo/cms/channelmanager/content/document/DocumentsServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2016-2017 Hippo B.V. (http://www.onehippo.com)
+ * Copyright 2016-2018 Hippo B.V. (http://www.onehippo.com)
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -252,11 +252,10 @@ class DocumentsServiceImpl implements DocumentsService {
             }
 
             session.save();
-
             return getDraft(handle, documentTypeId, locale);
         } catch (WorkflowException | RepositoryException | RemoteException e) {
             log.warn("Failed to add document '{}' of type '{}' to folder '{}' 
using template query '{}'",
-                    encodedSlug, documentTypeId, 
newDocumentInfo.getRootPath(), templateQuery);
+                    encodedSlug, documentTypeId, 
newDocumentInfo.getRootPath(), templateQuery, e);
             throw new InternalServerErrorException(new 
ErrorInfo(Reason.SERVER_ERROR));
         }
     }



View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-addon-channel-manager/compare/2ba0eb05c779defe7f0e52029f97916d064b78eb...49ed8973142ae2d3237b94f0f1d398a6d70fe013

---
View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-addon-channel-manager/compare/2ba0eb05c779defe7f0e52029f97916d064b78eb...49ed8973142ae2d3237b94f0f1d398a6d70fe013
You're receiving this email because of your account on code.onehippo.org.
_______________________________________________
Hippocms-svn mailing list
Hippocms-svn@lists.onehippo.org
https://lists.onehippo.org/mailman/listinfo/hippocms-svn

Reply via email to