Add some logging functionality to lpreserver