Added checks for debug build to disable loggin in production