Lion Kortlepel
bfe9cfd41b
dont make the compiler mad, now
2021-10-10 01:07:14 +02:00
Lion Kortlepel
d4f40ca889
force crash
2021-10-10 00:58:10 +02:00
Lion Kortlepel
d0431c0b9d
Use v2 api
2021-09-27 15:46:37 +02:00
Lion Kortlepel
0961f86662
Add heartbeat-api-v API version header
2021-09-27 15:46:37 +02:00
Lion Kortlepel
7f2ca025f8
Start using new heartbeat response format
2021-09-27 15:46:37 +02:00
Lion Kortlepel
2355327c21
CMake: Fix typo in SANITIZE codepath
2021-09-15 17:55:34 +02:00
Lion Kortlepel
3837e101e2
CMake: Use gzipped debug info on linux
2021-09-15 17:55:34 +02:00
Lion Kortlepel
fa19ba08e3
Sentry: Properly store DSN
2021-09-15 17:55:34 +02:00
Lion Kortlepel
57d0eb735e
Add cryptography header for the future
2021-09-15 17:55:34 +02:00
Lion Kortlepel
15704abf6c
Http, Heartbeat: Process status < 0 differently, report as "Invalid
...
Response Code"
2021-09-15 17:55:34 +02:00
Lion Kortlepel
6883c96d33
Http: Add Sentry error breadcrumbs on internal https POST errors
2021-09-15 17:55:34 +02:00
Lion Kortlepel
f632606d76
Heartbeat: Dont report 200 + INVALID_KEY to Sentry
2021-09-15 17:55:34 +02:00
Lion Kortlepel
c70ada2926
Config: private by default
2021-09-15 17:55:34 +02:00
Lion Kortlepel
80aebcb9a7
Actions: prerelease by default
2021-09-13 11:58:01 +03:00
Lion Kortlepel
3fc397814c
Move update check to after initialization (since its blocking)
2021-09-11 11:38:06 +03:00
Lion Kortlepel
6542be09ee
Clarify what sentry sends, add a way to turn off the warning
2021-09-11 11:38:06 +03:00
Lion Kortlepel
38b934bc0f
Move signal handling into its own translation unit to limit overlap
2021-09-11 11:38:06 +03:00
Lion Kortlepel
a2f92b5791
Update changelog, use std::exit instead of exit
2021-09-11 11:38:06 +03:00
Lion Kortlepel
30624c77a2
Update commandline; reset terminal before exit
2021-09-11 11:38:06 +03:00
Lion Kortlepel
b1664bb184
Application: Perform hard-shutdown after 3 Ctrl+C's
2021-09-11 11:38:06 +03:00
Lion Kortlepel
ffac000cd2
Config: Add basic opt-out for Sentry
2021-09-11 11:38:06 +03:00
Lion Kortlepel
3cd94380e2
Changelog: Add recent additions
2021-09-11 11:38:06 +03:00
Lion Kortlepel
b055fd8bda
GracefullyShutdown: Add "subsystem x/y shutting down" message
...
Remove old "X shutting down", "X shut down" messages, they were bad and
confusing
2021-09-11 11:38:06 +03:00
Lion Kortlepel
d43ee4b7b6
Bump version to 2.3.2
2021-09-11 11:38:06 +03:00
Lion Kortlepel
a514591650
Main: Add Ctrl+C handler for windows
2021-09-11 11:38:06 +03:00
Lion Kortlepel
0f9f81e9fa
Http: Add cloudflare 5XX status code strings
2021-09-11 11:38:06 +03:00
Lion Kortlepel
11e94e91a7
Update Changelog.md to reflect latest changes in recent merge from #44
2021-09-10 13:41:45 +03:00
Lion Kortlepel
cacdc004da
Sentry: remove url length print
2021-09-08 19:55:03 +03:00
Lion Kortlepel
8250d5876f
bump to 2.3.1, fix sentry
...
Fix sentry url length print
remove quotes
github actions is cursed
add debug print
test action
Dont use curl on windows
I dont know why the windows build doesnt report to sentry, so ill try
this.
Change timeout to 20 minutes instead of 5
this is a hacky workaround anyways, so i really dont see why it should
only be 5. 5 is barely enough.
temporarily enable debug mode on sentry
CMake: Use breakpad on windows instead of crashpad
CMake: Sentry: use inproc backend
Since cmake refuses to set my variables, I will do it this way.
I am so tired of this github workflow garbage
Sentry: disable debug again, set
sentry_options_set_symbolize_stacktraces to true, fix memory leak
Sentry: hotfix: dont free options
somehow that causes it to crash, and i cannot be bothered to find out
why right now
2021-09-08 19:55:03 +03:00
Lion Kortlepel
a7b02c459e
Actions: update release action
2021-09-08 19:55:03 +03:00
Lion Kortlepel
0d5ef404f6
Sentry: ensure user is set up before version check
2021-09-08 19:55:03 +03:00
Lion Kortlepel
07cf7d7c21
Actions: Replace " with ' might fix the sentry issue
2021-09-08 19:55:03 +03:00
Lion Kortlepel
809a851c71
add trace() as DEBUG debug()
...
Replace DEBUG debug() with trace() everywhere
2021-09-08 19:55:03 +03:00
Lion Kortlepel
fe36191baf
fix github actions
...
Possible fix for sentry url not showing up in windows build
possible fix for sentry, again
add static_assert in attempt to fix issue with sentry
use target_compile_definitions instead of add_compile_definitions
2021-09-08 19:55:03 +03:00
Lion Kortlepel
7d137eb496
Common: Make threadNameMap static
...
good practice
2021-09-08 19:55:03 +03:00
Lion Kortlepel
fd6234bd21
Minor fixes
2021-09-08 19:55:03 +03:00
Lion Kortlepel
9f0b057c14
TNetwork: Fix crash when auth response is not a JSON object
2021-09-08 19:55:03 +03:00
Lion Kortlepel
0143748953
TLuaFile: Remove RegisterThread calls since it overrides thread names
...
This is due to the horrible design of TLuaFile. Everything may be called
at any time from any thread. FIXME.
2021-09-08 19:55:03 +03:00
Lion Kortlepel
8ec90d5186
Add Defer<FnT> type to defer actions to the end of scope.
2021-09-08 19:55:03 +03:00
Lion Kortlepel
d054214b7f
Various fixes
2021-09-08 19:55:03 +03:00
Lion Kortlepel
003a8269aa
Fix url
2021-09-08 19:55:03 +03:00
Lion Kortlepel
59b1b45625
Sentry: don't report id=authkey unless it's likely to be valid
2021-09-08 19:55:03 +03:00
Lion Kortlepel
15e5cee166
Common: fix compile error
2021-09-08 19:55:03 +03:00
Lion Kortlepel
12123582ad
add non-working GET for version
2021-09-08 19:55:03 +03:00
Lion Kortlepel
3fb227e468
TNetwork: Fix crash on wrong backend response
2021-09-08 19:55:03 +03:00
Lion Kortlepel
31e9004011
CMakeLists: Win32: Set runtime linking mode before compiling sentry
...
in an attempt to fix windows compile issue
2021-09-08 19:55:03 +03:00
Lion Kortlepel
f98c8dabb0
Http: add Status::ToString method, use to report errors to sentry for custom fingerprint
2021-09-08 19:55:03 +03:00
Lion Kortlepel
e8665bfb72
CMakeLists: build runtime static on msvc
2021-09-08 19:55:03 +03:00
Lion Kortlepel
3d13381abd
CMakeLists: build sentry static
2021-09-08 19:55:03 +03:00
Lion Kortlepel
5352e4ff03
CMakeLists: link against sentry on windows
2021-09-08 19:55:03 +03:00
Lion Kortlepel
c571e218c7
Compat: add back types
2021-09-08 19:55:03 +03:00
Lion Kortlepel
5725717e29
possible windows compiler fix, again
2021-09-08 19:55:03 +03:00
Lion Kortlepel
7f5447f25e
Sentry: add debug prints for hard-debug mode
2021-09-08 19:55:03 +03:00
Lion Kortlepel
b33b396089
Sentry: add debug, remove wrong exception to sentry logging
2021-09-08 19:55:03 +03:00
Lion Kortlepel
ff3cbebac0
Sentry: more macro replacements
2021-09-08 19:55:03 +03:00
Lion Kortlepel
0f9a994c10
Sentry: Fix compile error in AssertNotReachable, release version
2021-09-08 19:55:03 +03:00
Lion Kortlepel
c4b72be50a
debug prints
2021-09-08 19:55:03 +03:00
Lion Kortlepel
5a3140c84a
THeartbeatThread: fix error reporting
2021-09-08 19:55:03 +03:00
Lion Kortlepel
bea8006a26
Sentry: reword
2021-09-08 19:55:03 +03:00
Lion Kortlepel
a2dc42c5f5
THeartbeatThread: fix missing response code
2021-09-08 19:55:03 +03:00
Lion Kortlepel
4b92532203
Sentry: sort by response code
2021-09-08 19:55:03 +03:00
Lion Kortlepel
683e13a4a0
CustomAssert: fix build error in release mode
2021-09-08 19:55:03 +03:00
Lion Kortlepel
9d6dbefb9d
Sentry: add request headers
2021-09-08 19:55:03 +03:00
Lion Kortlepel
981b56b846
CustomAssert: fix macro in release being borked
2021-09-08 19:55:03 +03:00
Lion Kortlepel
9f52ab2e54
Senty: add threadname to context
2021-09-08 19:55:03 +03:00
Lion Kortlepel
8fada3ac04
Sentry: add multiple more logging mechanisms, add [CHAT]
2021-09-08 19:55:03 +03:00
Lion Kortlepel
5330013dc3
possible compiler fix by not using SD_BOTH
2021-09-08 19:55:03 +03:00
Lion Kortlepel
c7e0461a86
possible compiler fix
2021-09-08 19:55:03 +03:00
Lion Kortlepel
032c1daf30
possible fix for windows compile issue
2021-09-08 19:55:03 +03:00
Lion Kortlepel
d1efebe068
handle Rc == "0" case, add sentry info event
2021-09-08 19:55:03 +03:00
Lion Kortlepel
c77e2b3fd8
possible fix for windows build 2
2021-09-08 19:55:03 +03:00
Lion Kortlepel
e92847e628
possible windows compiler fix
2021-09-08 19:55:03 +03:00
Lion Kortlepel
afb18ccff7
THeartbeatThread: fix isAuth being in the wrong scope
2021-09-08 19:55:03 +03:00
Lion Kortlepel
4659a9362d
Fix missing semi
...
didnt do this in a while, wow
2021-09-08 19:55:03 +03:00
Lion Kortlepel
fe6e1e6266
Heartbeat: Try backup1 and backup2, refactor sentry reporting
2021-09-08 19:55:03 +03:00
Lion Kortlepel
c0faff5b05
THeartbeatThread: remove second try to heartbeat url
2021-09-08 19:55:03 +03:00
Lion Kortlepel
f4ffa2cdda
Sentry: remove authkey, use id instead
2021-09-08 19:55:03 +03:00
Lion Kortlepel
1409d4ef80
Sentry: use locked contexts to send data to avoid races
2021-09-08 19:55:03 +03:00
Lion Kortlepel
51e662fdda
Compat: fix clash with socket() macro, Sentry: Add LogDebug
2021-09-08 19:55:03 +03:00
Lion Kortlepel
72950fdab2
CMakeLists: attempt to use curl on windows instead of winhttp for sentry transport
2021-09-08 19:55:03 +03:00
Lion Kortlepel
b9f594896a
Sentry: setup user after config init so that we can sent the authkey
2021-09-08 19:55:03 +03:00
Lion Kortlepel
8551e56e42
Sentry: users: add authkey, username
2021-09-08 19:55:03 +03:00
Lion Kortlepel
f4fc182d5e
movre TSentry include up, possibly fixing windows actions issue with
...
macros
im really starting to appreciate that windows API includes clash with
each other because of macros, its super fun
2021-09-08 19:55:03 +03:00
Lion Kortlepel
ee1e948a65
Sentry: remove IP from user data
2021-09-08 19:55:03 +03:00
Lion Kortlepel
e3081a971e
CMakeLists, Actions: Introduce env secret url
2021-09-08 19:55:03 +03:00
Lion Kortlepel
7c5bf9473e
CMakeLists: fix include paths
2021-09-08 19:55:03 +03:00
Lion Kortlepel
5a44a8e9c5
Sentry: init before setting user
2021-09-08 19:55:03 +03:00
Lion Kortlepel
d1a0eaffab
Sentry: move print as it was blocking (?)
2021-09-08 19:55:03 +03:00
Lion Kortlepel
10322bf24e
THeartbeatThread: Use Target var in both places
2021-09-08 19:55:03 +03:00
Lion Kortlepel
969cd93358
rename Sentry to TSentry
...
windows filenames arent case-sensitive so it doesnt know which
sentry.h we mean.
2021-09-08 19:55:03 +03:00
Lion Kortlepel
b3a8b1a682
CMakeLists: move sentry back in, add C to languages
2021-09-08 19:55:03 +03:00
Lion Kortlepel
2774a73d83
Sentry: move welcome message to after version print
2021-09-08 19:55:03 +03:00
Lion Kortlepel
739eaad199
Sentry: print welcome string on startup
2021-09-08 19:55:03 +03:00
Lion Kortlepel
b53b72d604
Sentry: Build sentry before starting project definition
...
since Sentry is C and we're CXX
2021-09-08 19:55:03 +03:00
Lion Kortlepel
85fd9e9ee3
Sentry: add loads more information
2021-09-08 19:55:03 +03:00
Lion Kortlepel
57e6e98423
Sentry: discern between auth.* and backend.* errors
...
TNetwork: error for CheckBytes is now warn
2021-09-08 19:55:03 +03:00
Lion Kortlepel
e3c6bdb50d
add changelog file
2021-09-08 19:55:03 +03:00
Lion Kortlepel
1f89b202b4
git: properly remove curl (woops)
2021-09-08 19:55:03 +03:00
Lion Kortlepel
0a31107e56
Sentry: add x-upstream
2021-09-08 19:55:03 +03:00
Lion Kortlepel
9237f0dd43
Http: add debug print
2021-09-08 19:55:03 +03:00