Improve logging in G_impl.
This commit is contained in:
parent
55ad2e5f86
commit
d9a0168bfa
@ -487,8 +487,7 @@ class Global final : public ActorContext {
|
|||||||
|
|
||||||
inline Global *G_impl(const char *file, int line) {
|
inline Global *G_impl(const char *file, int line) {
|
||||||
ActorContext *context = Scheduler::context();
|
ActorContext *context = Scheduler::context();
|
||||||
CHECK(context);
|
LOG_CHECK(context != nullptr && context->get_id() == Global::ID) << "In " << file << " at " << line;
|
||||||
LOG_CHECK(context->get_id() == Global::ID) << "In " << file << " at " << line;
|
|
||||||
return static_cast<Global *>(context);
|
return static_cast<Global *>(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user