BUG: was using wrong Code in logs