Fixed berserk logging bug