Trying some debugging

This commit is contained in:
Asaf Gartner 2022-10-14 07:04:00 +03:00
parent 09d875a9f6
commit f548495813
1 changed files with 1 additions and 0 deletions

View File

@ -760,6 +760,7 @@ func fetchLatestStreamStatus(ctx context.Context, conn db.ConnOrTx, twitchID str
twitchID, twitchID,
) )
if err == db.NotFound { if err == db.NotFound {
twitchLog(ctx, conn, models.TwitchLogTypeOther, twitchLogin, "Creating new streamer", fmt.Sprintf("twitchID: %s", twitchID))
_, err = conn.Exec(ctx, _, err = conn.Exec(ctx,
` `
INSERT INTO twitch_latest_status (twitch_id, twitch_login) INSERT INTO twitch_latest_status (twitch_id, twitch_login)