Skip to content

Commit

Permalink
GH-1039 Add debug output on controller shutdown call
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Nov 22, 2024
1 parent 6fe2a17 commit da5b393
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/chain_plugin/chain_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,10 @@ void chain_plugin::plugin_initialize(const variables_map& options) {
void chain_plugin_impl::plugin_startup()
{ try {
try {
auto shutdown = [](){ return app().quit(); };
auto shutdown = []() {
dlog("controller shutdown, quitting...");
return app().quit();
};
auto check_shutdown = [](){ return app().is_quiting(); };
if (snapshot_path)
chain->startup(shutdown, check_shutdown, std::make_shared<threaded_snapshot_reader>(*snapshot_path));
Expand Down

0 comments on commit da5b393

Please sign in to comment.