Add the missing exception stack trace in the log files