Skip to content

Commit 1b7a659

Browse files
replace temp logs with tracer
1 parent 93d46b6 commit 1b7a659

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

protobuf/echo/EchoErrorPolicy.cpp

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#include "protobuf/echo/EchoErrorPolicy.hpp"
2-
#include "infra/stream/StdStringOutputStream.hpp"
3-
#include "infra/util/ReallyAssert.hpp"
2+
#include "services/tracer/GlobalTracer.hpp"
43
#include <cstdlib>
54

65
namespace services
@@ -21,17 +20,13 @@ namespace services
2120

2221
void EchoErrorPolicyAbort::ServiceNotFound(uint32_t serviceId) const
2322
{
24-
infra::StdStringOutputStream::WithStorage stream;
25-
stream << "EchoErrorPolicyAbort::ServiceNotFound - serviceId: " << serviceId;
26-
really_assert(false);
23+
services::GlobalTracer().Trace() << "EchoErrorPolicyAbort::ServiceNotFound - serviceId: " << serviceId;
2724
std::abort();
2825
}
2926

3027
void EchoErrorPolicyAbort::MethodNotFound(uint32_t serviceId, uint32_t methodId) const
3128
{
32-
infra::StdStringOutputStream::WithStorage stream;
33-
stream << "EchoErrorPolicyAbort::MethodNotFound - serviceId: " << serviceId << ", methodId: " << methodId;
34-
really_assert(false);
29+
services::GlobalTracer().Trace() << "EchoErrorPolicyAbort::MethodNotFound - serviceId: " << serviceId << ", methodId: " << methodId;
3530
std::abort();
3631
}
3732
}

0 commit comments

Comments
 (0)