#2042 fatal error logging under when debug enabled