Skip to content

Commit

Permalink
Better logging for [p]plm-playlists
Browse files Browse the repository at this point in the history
  • Loading branch information
Drapersniper committed Jun 15, 2024
1 parent 7bf8091 commit ae45d24
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion plmigrator/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,20 @@ async def _process_playlists(self, playlist_api: PlaylistWrapper, context: PyLav
url=pl.playlist_url,
tracks=tracks,
)
LOGGER.info(
"Successfully to migrate playlist %s (%s) from guild: %s in scope: %s",
pl.playlist_name,
pl.playlist_id,
pl.author_id,
pl.scope_id,
)
except Exception as exc:
LOGGER.error(
"Failed to migrate playlist %s (%s) from guild: %s",
"Failed to migrate playlist %s (%s) from guild: %s in scope: %s",
pl.playlist_name,
pl.playlist_id,
pl.author_id,
pl.scope_id,
exc_info=exc,
)

Expand Down

0 comments on commit ae45d24

Please sign in to comment.