Skip to content

Commit

Permalink
Add logging to WFP as it can be long running
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarans committed Mar 3, 2024
1 parent 6310c90 commit af7674f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hdx/location/wfp_exchangerates.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import logging
from datetime import timezone
from typing import Dict, List

Expand All @@ -11,6 +12,8 @@
except ImportError:
WfpApiToken = None

logger = logging.getLogger(__name__)


class WFPExchangeRates:
"""Obtain WFP official exchange rates. Requires WFP credentials amd
Expand Down Expand Up @@ -91,6 +94,7 @@ def get_historic_rates(
"""
historic_rates = {}
for currency in currencies:
logger.info(f"Getting WFP historic rates for {currency}")
currency_historic_rates = self.get_currency_historic_rates(
currency
)
Expand Down

0 comments on commit af7674f

Please sign in to comment.