You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// if deposit asset > 0 => filter by deposit_asset
186
-
// TODO: limit the amount of passable deposit assets to avoid the max query size!
187
186
let active_campaigns = units_for_slot_get_campaigns(
188
187
&pool,
189
188
deposit_assets.as_ref(),
@@ -216,7 +215,7 @@ async fn get_campaigns(
216
215
active_campaigns
217
216
.iter()
218
217
.find(|campaign| {
219
-
debug!(logger,"Take {:?} because it's active and not exhausted, i.e. {} (remaining budget) > 0",remaining, campaign_id);
218
+
debug!(logger,"Take {:?} because it's active and not exhausted, i.e. {} (remaining budget) > 0",campaign_id, remaining);
220
219
221
220
campaign.id == campaign_id
222
221
})
@@ -294,6 +293,7 @@ async fn apply_targeting(
294
293
.collect::<Vec<_>>();
295
294
296
295
if ad_units.is_empty(){
296
+
debug!(logger,"Skipping {:?} because of no matching AdUnits types to AdSlot type {}", campaign.id, ad_slot.ad_type);
297
297
None
298
298
}else{
299
299
let campaign_input = input_base.clone().with_campaign(campaign.clone());
@@ -328,6 +328,7 @@ async fn apply_targeting(
328
328
let price = pricing_bounds.min.max(max_price);
329
329
330
330
if price < config.limits.units_for_slot.global_min_impression_price{
331
+
debug!(logger,"Max IMPRESSION price is less than the global minium ({} < {}) for AdUnit {:?} and campaign {:?}", price, config.limits.units_for_slot.global_min_impression_price, ad_unit.ipfs, campaign.id);
0 commit comments