Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion runtime-light/stdlib/diagnostics/contextual-logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class contextual_logger final : vk::not_copyable {
template<typename... Args>
void contextual_logger::log(kphp::log::level level, std::optional<std::span<void* const>> trace, std::format_string<impl::wrapped_arg_t<Args>...> fmt,
Args&&... args) const noexcept {
static constexpr size_t LOG_BUFFER_SIZE = 512UZ;
static constexpr size_t LOG_BUFFER_SIZE = 2048UZ;
std::array<char, LOG_BUFFER_SIZE> log_buffer; // NOLINT
size_t message_size{impl::format_log_message(log_buffer, fmt, std::forward<Args>(args)...)};
auto message{std::string_view{log_buffer.data(), static_cast<std::string_view::size_type>(message_size)}};
Expand Down
2 changes: 1 addition & 1 deletion runtime-light/stdlib/diagnostics/php-assert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void php_warning_impl(php_log_level level, char const* message, va_list args) no
return;
}

constexpr size_t LOG_BUFFER_SIZE = 512;
constexpr size_t LOG_BUFFER_SIZE = 2048UZ;
std::array<char, LOG_BUFFER_SIZE> log_buffer; // NOLINT
const auto recorded{std::vsnprintf(log_buffer.data(), log_buffer.size(), message, args)};
if (recorded <= 0) {
Expand Down
2 changes: 1 addition & 1 deletion runtime-light/stdlib/diagnostics/raw-logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ struct raw_logger final {
template<typename... Args>
static void log(kphp::log::level level, std::optional<std::span<void* const>> trace, std::format_string<impl::wrapped_arg_t<Args>...> fmt,
Args&&... args) noexcept {
static constexpr size_t LOG_BUFFER_SIZE = 512UZ;
static constexpr size_t LOG_BUFFER_SIZE = 2048UZ;
std::array<char, LOG_BUFFER_SIZE> log_buffer; // NOLINT
size_t message_size{impl::format_log_message(log_buffer, fmt, std::forward<Args>(args)...)};
auto message{std::string_view{log_buffer.data(), static_cast<std::string_view::size_type>(message_size)}};
Expand Down
Loading