resistance-modelling / slim

SLIM is the Sea Lice Model associated with a funded BBSRC project on the evolution to resistance to treatment in sea lice (BBR009309). We aim to integrate an epidemiological and genetic model of sea lice with a model of treatment decision-making by different salmon farms.
MIT License
1 stars 0 forks source link

Defer formatting in logging until it is needed #215

Closed erolm-a closed 2 years ago

erolm-a commented 2 years ago

Some of the code does stuff like: logger.debug("\t\tFarm {} requests treatment {}".format(self.id_, str(treatment_type))). The default logger API defers formatting until the latest possible.

(I doubt this will buy us much time though)