Browse Source

Add more verbose logging

Toni Fadjukoff 6 years ago
parent
commit
d5dec052ab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bot.go

+ 1 - 1
bot.go View File

322
 				} else if token.Expiry.Before(time.Now()) {
322
 				} else if token.Expiry.Before(time.Now()) {
323
 					log.Println("Token has expired")
323
 					log.Println("Token has expired")
324
 				} else {
324
 				} else {
325
-					log.Println("Checking if playlist needs updating")
326
 					playlistId, tracks := findPlaylist(changedWikiText)
325
 					playlistId, tracks := findPlaylist(changedWikiText)
327
 					currentTracks, err := app.db.FindPlaylistBySection(section.title)
326
 					currentTracks, err := app.db.FindPlaylistBySection(section.title)
327
+					log.Println("Checking if playlist needs updating", currentTracks, tracks)
328
 					if len(tracks) > 0 && (err != nil || reflect.DeepEqual(currentTracks, tracks)) {
328
 					if len(tracks) > 0 && (err != nil || reflect.DeepEqual(currentTracks, tracks)) {
329
 
329
 
330
 						if playlistId == "" {
330
 						if playlistId == "" {