facebook / grocery-delivery

The Grocery Delivery utility for managing cookbook uploads to distributed Chef backends.
Apache License 2.0
154 stars 55 forks source link

Convert logging message to a string before prepending severity #52

Closed ifel closed 5 years ago

ifel commented 5 years ago

Logging wrapper expects to get a message as a string, so it prepends a severity to it. However, libraries may pass object instances, that are not descendants of the string, so they do not have the prepend method. This works fine with normal logger, as it converts the input to the string, so do this in the wrapper as well.