Skip to content

Commit

Permalink
Log recommenders using a human-readable string
Browse files Browse the repository at this point in the history
  • Loading branch information
maurodoglio committed Sep 29, 2017
1 parent 6e67293 commit ac87554
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions taar/recommenders/recommendation_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ def recommend(self, client_id, limit):
for r in self.recommenders:
if r.can_recommend(client_info):
logger.info("Recommender selected", extra={
"client_id": client_id, "recommender": r
"client_id": client_id, "recommender": str(r)
})
recommendations = r.recommend(client_info, limit)
if not recommendations:
logger.info("No recommendations", extra={
"client_id": client_id, "recommender": r
"client_id": client_id, "recommender": str(r)
})

return recommendations
Expand Down

0 comments on commit ac87554

Please sign in to comment.