details: https://code.openbravo.com/erp/devel/pi/rev/bde8ff267b72 changeset: 30701:bde8ff267b72 user: Asier Lostalé <asier.lostale <at> openbravo.com> date: Thu Dec 01 15:37:57 2016 +0100 summary: fixed bug 34667: incorrect log in LogCleanUpProcess if vacuum fails
diffstat: modules/org.openbravo.utility.cleanup.log/src/org/openbravo/utility/cleanup/log/LogCleanUpProcess.java | 11 ++++----- 1 files changed, 5 insertions(+), 6 deletions(-) diffs (40 lines): diff -r a87d9652fd86 -r bde8ff267b72 modules/org.openbravo.utility.cleanup.log/src/org/openbravo/utility/cleanup/log/LogCleanUpProcess.java --- a/modules/org.openbravo.utility.cleanup.log/src/org/openbravo/utility/cleanup/log/LogCleanUpProcess.java Tue Nov 29 15:10:55 2016 +0530 +++ b/modules/org.openbravo.utility.cleanup.log/src/org/openbravo/utility/cleanup/log/LogCleanUpProcess.java Thu Dec 01 15:37:57 2016 +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) 2013-2015 Openbravo SLU + * All portions are Copyright (C) 2013-2016 Openbravo SLU * All Rights Reserved. * Contributor(s): ______________________________________. ************************************************************************ @@ -90,8 +90,7 @@ long t = System.currentTimeMillis(); // force reload of log clean up configuration to prevent LazyInitializationException config = OBDal.getInstance().get(LogCleanUpConfig.class, config.getId()); - Entity entity = ModelProvider.getInstance().getEntityByTableId( - config.getTable().getId()); + Entity entity = ModelProvider.getInstance().getEntityByTableId(config.getTable().getId()); if (config.isTruncateTable()) { // tables to be truncated don't use CleanEntity @@ -221,14 +220,14 @@ } } } catch (SQLException e1) { - log.error("Errer executing vacuum", e1); - bgLogger.equals("Error executing vacuum: " + e1.getMessage()); + log.error("Error executing vacuum", e1); + bgLogger.log("Error executing vacuum: " + e1.getMessage()); } finally { // resetting auto commit to properly release DAL trx try { con.setAutoCommit(false); } catch (SQLException e) { - log.error("Errer executing vacuum", e); + log.error("Error executing vacuum", e); } } } ------------------------------------------------------------------------------ _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits