Skip to content

Commit eebe69c

Browse files
committed
Revert SENTRY_SIGNAL_SAFE_LOG changes that slipped in
1 parent 72a5b3c commit eebe69c

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

src/backends/sentry_backend_inproc.c

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,11 @@
3838
*/
3939
#ifdef SENTRY_PLATFORM_UNIX
4040
# include <unistd.h>
41-
# ifdef SENTRY_PLATFORM_ANDROID
42-
# include <android/log.h>
43-
# define SENTRY_SIGNAL_SAFE_LOG(msg) \
44-
do { \
45-
__android_log_write(ANDROID_LOG_ERROR, "sentry", msg); \
46-
} while (0)
47-
# else
48-
# define SENTRY_SIGNAL_SAFE_LOG(msg) \
49-
do { \
50-
static const char _msg[] = "[sentry] " msg "\n"; \
51-
(void)!write(STDERR_FILENO, _msg, sizeof(_msg) - 1); \
52-
} while (0)
53-
# endif
41+
# define SENTRY_SIGNAL_SAFE_LOG(msg) \
42+
do { \
43+
static const char _msg[] = "[sentry] " msg "\n"; \
44+
(void)!write(STDERR_FILENO, _msg, sizeof(_msg) - 1); \
45+
} while (0)
5446
#elif defined(SENTRY_PLATFORM_WINDOWS)
5547
# define SENTRY_SIGNAL_SAFE_LOG(msg) \
5648
do { \

0 commit comments

Comments
 (0)