From baf7f2bb024a79fad30160e2b07e30f1fd41843e Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Wed, 18 Dec 2024 23:20:45 +0800 Subject: [PATCH] fix abort --- tile/base/internal/logging.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tile/base/internal/logging.cc b/tile/base/internal/logging.cc index 64e7ee4..b016424 100644 --- a/tile/base/internal/logging.cc +++ b/tile/base/internal/logging.cc @@ -498,7 +498,7 @@ LogToSinks(LogSeverity severity, sink->Send(severity, full_filename, base_filename, line, time, message, message_len); } catch (const std::exception &e) { fprintf(stderr, "\nLogSink[name=%s], reason=%s\n", sink->name(), e.what()); - assert(false); + std::abort(); } } } @@ -513,7 +513,7 @@ WaitForSinks() sink->Flush(); } catch (const std::exception &e) { fprintf(stderr, "\nLogSink[name=%s], reason=%s\n", sink->name(), e.what()); - assert(false); + std::abort(); } } }