Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Creative commons Attribution-NonCommercial license. http://creativecommons.org/licenses/by-nc/2.5/au/deed.en_GB NO WARRANTY IS GIVEN OR IMPLIED, USE AT YOUR OWN RISK.
 
 package base.jee.task;
 
Remove old log messages from the audit_event table
public class LogCleanupTask extends Task {
	private API api;
	public LogCleanupTask(API apithrows IOException {
		super();
		this. = api;
		if(api.getSettingsCache().get("log.max_age"null) == null) {
			api.getSettingsCache().set("log.max_age""" + (60*60*24*365));
		}
		if(api.getSettingsCache().get("log.max_age.debug"null) == null) {
			api.getSettingsCache().set("log.max_age.debug""" + (60*60*24));
		}
	}
	public void run() throws InterruptedException {
		try {
catch(IOException e) {
		}
	}
New to GrepCode? Check out our FAQ X