Updates for sentry.io 0.4.0 API
This commit is contained in:
parent
439c5bf4f4
commit
bbce95b5ea
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue