diff options
| author | Dan Engelbrecht <[email protected]> | 2022-08-26 13:52:28 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-08-26 04:52:28 -0700 |
| commit | 8cba9329f772f8516f76e02c72dc00b61728380e (patch) | |
| tree | 9f12bc42249fcb302c28b797a66f1259761889d0 /zenserver/config.cpp | |
| parent | Use "\\?\" prefixed paths and fix hardcoded path delimiters (#149) (diff) | |
| download | zen-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/config.cpp')
| -rw-r--r-- | zenserver/config.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/zenserver/config.cpp b/zenserver/config.cpp index 6581b2109..fe6335465 100644 --- a/zenserver/config.cpp +++ b/zenserver/config.cpp @@ -549,6 +549,11 @@ ParseCliOptions(int argc, char* argv[], ZenServerOptions& ServerOptions) { ServerOptions.DataDir = PickDefaultStateDirectory(); } + + if (ServerOptions.AbsLogFile.empty()) + { + ServerOptions.AbsLogFile = ServerOptions.DataDir / "logs" / "zenserver.log"; + } } void |