1
0
Fork 0

Updates for sentry.io 0.4.0 API

This commit is contained in:
Automatic Release Builder 2020-08-18 16:19:14 +01:00 committed by James Turner
parent 439c5bf4f4
commit bbce95b5ea

View file

@ -85,13 +85,13 @@ void initSentry()
sentry_options_set_database_pathw(options, homePathString.c_str());
const auto logPath = (fgHomePath() / "fgfs.log").wstr();
sentry_options_add_attachmentw(options, "log", logPath.c_str());
sentry_options_add_attachmentw(options, logPath.c_str());
#else
const auto homePathString = dataPath.utf8Str();
sentry_options_set_database_path(options, homePathString.c_str());
const auto logPath = (fgHomePath() / "fgfs.log").utf8Str();
sentry_options_add_attachment(options, "log", logPath.c_str());
sentry_options_add_attachment(options, logPath.c_str());
#endif
sentry_init(options);