There is an exception when displaying log in console mode.