Fix formatting of stacktrace in log