calgo-lab / green-db

The monorepo that powers the GreenDB.
https://calgo-lab.github.io/green-db/
22 stars 2 forks source link

Log the source when unknown sustainability labels/strings are found. #131

Closed BigDatalex closed 1 year ago

BigDatalex commented 1 year ago

With the current logging mechanism, it is not straightforward to trace back the source for which an unknown sustainability label was found. This PR adds the source to the logging message which ensures a correct identification of the source to which an unknown label belongs.

The old message format looked like e.g. this: 2023-02-19 20:00:08,562 - INFO - extract.utils: unknown sustainability label: TENCEL™ Lyocell (Lenzing) which will be replaced by this: 2023-02-19 20:00:08,562 - INFO - extract.utils: unknown sustainability label from otto: TENCEL™ Lyocell (Lenzing)