added log while executing in error