fix error logging exception issue

Signed-off-by: dannygod <dannygodii@gmail.com>