aboutsummaryrefslogtreecommitdiff
path: root/zenserver/zenserver.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-08-26 13:52:28 +0200
committerGitHub <[email protected]>2022-08-26 04:52:28 -0700
commit8cba9329f772f8516f76e02c72dc00b61728380e (patch)
tree9f12bc42249fcb302c28b797a66f1259761889d0 /zenserver/zenserver.cpp
parentUse "\\?\" prefixed paths and fix hardcoded path delimiters (#149) (diff)
downloadzen-8cba9329f772f8516f76e02c72dc00b61728380e.tar.xz
zen-8cba9329f772f8516f76e02c72dc00b61728380e.zip
Add sentry log sink to capture error/critical log statements (#147)
Attach log file to sentry error reports Log ERROR when std::terminate() is called
Diffstat (limited to 'zenserver/zenserver.cpp')
-rw-r--r--zenserver/zenserver.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/zenserver/zenserver.cpp b/zenserver/zenserver.cpp
index 31ca8851a..e60c73635 100644
--- a/zenserver/zenserver.cpp
+++ b/zenserver/zenserver.cpp
@@ -956,6 +956,7 @@ ZenEntryPoint::Run()
sentry_options_set_dsn(SentryOptions, "https://[email protected]/5919284");
sentry_options_set_database_path(SentryOptions, SentryDatabasePath.c_str());
sentry_options_set_logger(SentryOptions, SentryLogFunction, this);
+ sentry_options_add_attachment(SentryOptions, m_ServerOptions.AbsLogFile.string().c_str());
// sentry_options_set_debug(SentryOptions, 1);
if (int ErrorCode = sentry_init(SentryOptions); ErrorCode == 0)