added output log with exception