Skip to content

Commit

Permalink
more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
anatolse committed Dec 26, 2023
1 parent 90535cc commit af3035a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions wallet/core/contracts/shaders_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ namespace beam::wallet {
try
{
compileAppShader(req.shader);
LOG_DEBUG() << __FUNCTION__ << "[" << __LINE__ << "] shader compiled";
}
catch(std::exception& ex)
{
Expand All @@ -291,6 +292,7 @@ namespace beam::wallet {
}

m_Args.clear();
LOG_DEBUG() << __FUNCTION__ << "[" << __LINE__ << "] args: " << req.args;
if (!req.args.empty())
{
AddArgs(req.args);
Expand All @@ -300,13 +302,19 @@ namespace beam::wallet {
_startEvent = io::AsyncEvent::create(io::Reactor::get_Current(),
[this, method = req.method]()
{
LOG_DEBUG() << __FUNCTION__ << "[" << __LINE__ << "] starting..." ;
StartRun(method);
LOG_DEBUG() << __FUNCTION__ << "[" << __LINE__ << "] completed";
});

m_Wallet.DoInSyncedWallet([wp = std::weak_ptr(_startEvent)]()
{
LOG_DEBUG() << __FUNCTION__ << "[" << __LINE__ << "] ";
if (auto sp = wp.lock())
{
LOG_DEBUG() << __FUNCTION__ << "[" << __LINE__ << "] posting event";
sp->post();
}
});
}

Expand Down

0 comments on commit af3035a

Please sign in to comment.