Skip to content

Commit

Permalink
[PDI-14232] Log line timeout (days) not deleting old log table entrie…
Browse files Browse the repository at this point in the history
…s (job logging)

- cleaning up log recodes ( due to log record timeout property ) after writing new info
  • Loading branch information
Ivan Nikolaichuk authored and Ivan Nikolaichuk committed Dec 8, 2015
1 parent 34bad34 commit 1189012
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engine/src/org/pentaho/di/job/Job.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2013 by Pentaho : http://www.pentaho.com
* Copyright (C) 2002-2015 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
Expand Down Expand Up @@ -1268,6 +1268,7 @@ protected void writeJobEntryLogInformation() throws KettleException {
db.writeLogRecord( jobEntryLogTable, LogStatus.START, copy, this );
}

db.cleanupLogRecords( jobEntryLogTable );
} catch ( Exception e ) {
throw new KettleException( BaseMessages.getString( PKG, "Job.Exception.UnableToJobEntryInformationToLogTable" ),
e );
Expand Down

0 comments on commit 1189012

Please sign in to comment.