Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 528 Bytes

File metadata and controls

13 lines (9 loc) · 528 Bytes

Contributing to eth-portfolio

y.stuck? logger

eth-portfolio relies on ypricemagic for price lookups. ypricemagic wraps long-running async calls with a DEBUG logger named y.stuck?. It only emits when the logger is enabled for DEBUG, and logs "module.function still executing after Xm with args ... kwargs ..." every 5 minutes until completion.

Enable it locally when debugging slow price calls:

import logging

logging.basicConfig(level=logging.INFO)
logging.getLogger("y.stuck?").setLevel(logging.DEBUG)