Skip to content

Commit

Permalink
Only log lastfm api output in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
joinemm committed Nov 28, 2023
1 parent adaaffc commit 1dfef89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/lastfm.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ async def api_request(self, method: str, params: dict) -> dict:
message=content.get("message"),
)

logger.info(json.dumps(content, indent=4))
if self.bot.debug:
logger.info(json.dumps(content, indent=4))
return content

###############
Expand Down

0 comments on commit 1dfef89

Please sign in to comment.