Add stacktrace to logs.