agile-lab-dev / darwin

Avro Schema Evolution made easy
Apache License 2.0
34 stars 10 forks source link

Use a "guarded" logger in trait Logging #41

Open tmnd1991 opened 5 years ago

tmnd1991 commented 5 years ago

As of 7d76fb3a421b1edbe3235a2a525ca1b56fae0065 the logger used in the logger trait is not guarded, therefore it always generates strings eagerly without checking if they will be emitted or not. This may incur in runtime penalties if some log message creation is onerous.