details: https://code.openbravo.com/erp/devel/pi/rev/812766437c8a changeset: 35042:812766437c8a user: Javier Armendáriz <javier.armendariz <at> openbravo.com> date: Tue Nov 20 12:23:28 2018 +0100 summary: Related to issue 39504: OBException logger should refer to this.getClass().
Using the default getLogger, all messages logged to this Logger would appear with OBException as the generating class. Using this.getClass(), the actual exception subclass would appear. diffstat: src/org/openbravo/base/exception/OBException.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (21 lines): diff -r 1296bc77e008 -r 812766437c8a src/org/openbravo/base/exception/OBException.java --- a/src/org/openbravo/base/exception/OBException.java Tue Nov 20 11:53:34 2018 +0100 +++ b/src/org/openbravo/base/exception/OBException.java Tue Nov 20 12:23:28 2018 +0100 @@ -11,7 +11,7 @@ * under the License. * The Original Code is Openbravo ERP. * The Initial Developer of the Original Code is Openbravo SLU - * All portions are Copyright (C) 2008-2017 Openbravo SLU + * All portions are Copyright (C) 2008-2018 Openbravo SLU * All Rights Reserved. * Contributor(s): ______________________________________. ************************************************************************ @@ -100,7 +100,7 @@ * @return the class-specific Logger */ protected Logger getLogger() { - return LogManager.getLogger(); + return LogManager.getLogger(this.getClass()); } /** _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits