opengamedata / opengamedata-core

Python framework for extracting features from OpenGameData event datasets.
https://opengamedata.fielddaylab.wisc.edu/
MIT License
1 stars 3 forks source link

Create a `self.Warning(...)` function for generators, allowing higher-level control over logging messages. #131

Closed LswaN58 closed 2 months ago

LswaN58 commented 3 months ago

The function should take a warning ID, a message, and an optional logging level.

Then at the base class level, we check how often we’ve seen that ID, and if it’s more than desired, don’t log it. Else, pass along message and log level to Logger.Log(...).

LswaN58 commented 2 months ago

Done in 7d8ed0ef33fc12a7109c57ecca3b316fd20ab9be