In production mode, asserts will cause logFatal to be blocking function which isn't what we want.