Code logging cleanup