Fixes logging not to show debug logs on release build.