Skip to content

Commit

Permalink
logs for asset-list
Browse files Browse the repository at this point in the history
  • Loading branch information
anatolse committed Jul 28, 2023
1 parent f950ddb commit c2b0b23
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion android/jni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ namespace
{
wallet::g_AssetsEnabled = true;

static auto logger = Logger::create(LOG_LEVEL_DEBUG, LOG_LEVEL_DEBUG, LOG_LEVEL_DEBUG, "wallet_", (fs::path(appData) / fs::path("logs")).string());
static auto logger = Logger::create(LOG_LEVEL_DEBUG, LOG_LEVEL_DEBUG, LOG_LEVEL_VERBOSE, "wallet_", (fs::path(appData) / fs::path("logs")).string());

Rules::get().UpdateChecksum();

Expand Down
2 changes: 2 additions & 0 deletions wallet/api/v7_3/v7_3_api_handle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ namespace beam::wallet
{
void V73Api::onHandleAssetsList(const JsonRpcId& id, AssetsList&& req)
{
LOG_DEBUG() << __FUNCTION__ << TRACE(req.refresh) << TRACE(req.height);
if (!req.refresh)
{
AssetsList::Response resp;
Expand All @@ -30,6 +31,7 @@ namespace beam::wallet
}
getWallet()->RequestAssetsListAt(req.height, [this, id, h = req.height, wguard = _weakSelf](auto&& assets)
{
LOG_DEBUG() << "Asset request completed";
auto guard = wguard.lock();
if (!guard)
{
Expand Down
3 changes: 3 additions & 0 deletions wallet/api/v7_3/v7_3_api_parse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ namespace beam::wallet
{
std::pair<AssetsList, IWalletApi::MethodInfo> V73Api::onParseAssetsList(const JsonRpcId& id, const nlohmann::json& params)
{
LOG_DEBUG() << __FUNCTION__;
AssetsList message;
if (auto refresh = getOptionalParam<bool>(params, "refresh"))
{
Expand All @@ -41,6 +42,8 @@ void V73Api::getResponse(const JsonRpcId& id, const AssetsList::Response& res, j
msg["assets"] = json::array();
auto& jsonAssets = msg["assets"];

LOG_DEBUG() << __FUNCTION__ << " assets: " << jsonAssets.size();

for (auto& asset: res.assets)
{
auto jsonAsset = json();
Expand Down

0 comments on commit c2b0b23

Please sign in to comment.