Tidy up log controller