Only log when not ndebug