Cleans up some logging statements.