added log to exception