Skip to content

Commit a021ed5

Browse files
author
lexeyo
committed
cc core: stacktrace configuration hint in deadlock detector log
Adds a message to the deadlock detector log to assist users in configuring stacktrace collection when it's disabled. commit_hash:317e41f9de04bb42e09d52c934c182d9dcd2d0bc
1 parent f5205f8 commit a021ed5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/src/engine/deadlock_detector.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ void StateBase::AddDependency(const Actor& from, const Actor& to) {
163163
}
164164
LOG_CRITICAL() << "Deadlocked task " << ToAssertString(*actor) << boost::stacktrace::to_string(it->second);
165165
}
166+
} else {
167+
LOG_CRITICAL()
168+
<< "A deadlock has been identified, but stacktrace collection is currently disabled. To enable "
169+
"stacktrace collection, set the `coro_pool.deadlock_detector` option in the "
170+
"`components::ManagerControllerComponent` static configuration to `enabled`.";
166171
}
167172

168173
OnCycleFound(*cycle);

0 commit comments

Comments
 (0)