This commit is contained in:
Ivan Blinkov 2020-06-12 01:00:35 +03:00
parent bbeb768a19
commit e92641858e

View File

@ -46,8 +46,10 @@ void sentry_logger(sentry_level_t level, const char * message, va_list args)
auto * logger = &Poco::Logger::get("SentryWriter");
size_t size = 1024;
char buffer[size];
if (vsnprintf(buffer, size, message, args) >= 0) {
switch (level) {
if (vsnprintf(buffer, size, message, args) >= 0)
{
switch (level)
{
case SENTRY_LEVEL_DEBUG:
logger->debug(buffer);
break;
@ -67,7 +69,6 @@ void sentry_logger(sentry_level_t level, const char * message, va_list args)
}
}
}
}
#endif
void SentryWriter::initialize(Poco::Util::LayeredConfiguration & config)