Compat: fix clash with socket() macro, Sentry: Add LogDebug

This commit is contained in:
Lion Kortlepel authored and Lion committed 2021-09-08 19:55:03 +03:00
1 parent 72950fdab2
commit 51e662fdda
4 files changed
+18 -6

No files matched your search

+3
View File
@@ -4,6 +4,7 @@
#include <sentry.h>
#include <string>
#include <mutex>
// TODO possibly use attach_stacktrace
@@ -16,6 +17,7 @@ public:
void PrintWelcome();
void SetupUser();
void Log(sentry_level_t level, const std::string& logger, const std::string& text);
void LogDebug(const std::string& text, const std::string& file, const std::string& line);
void AddExtra(const std::string& key, const sentry_value_t& value);
void AddExtra(const std::string& key, const std::string& value);
void LogException(const std::exception& e, const std::string& file, const std::string& line);
@@ -25,6 +27,7 @@ public:
private:
bool mValid { true };
std::mutex mMutex;
};
#endif // SENTRY_H