mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
fixes
This commit is contained in:
parent
bbeb768a19
commit
e92641858e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user