Skip to content

Commit

Permalink
Debug logging when saving a playlist.
Browse files Browse the repository at this point in the history
  • Loading branch information
abika committed Mar 18, 2014
1 parent d023b56 commit 27e1c16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/playlist/playlistbackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

#include "core/application.h"
#include "core/database.h"
#include "core/logging.h"
#include "core/scopedtransaction.h"
#include "core/song.h"
#include "library/librarybackend.h"
Expand Down Expand Up @@ -287,6 +288,8 @@ void PlaylistBackend::SavePlaylist(int playlist, const PlaylistItemList& items,
QMutexLocker l(db_->Mutex());
QSqlDatabase db(db_->Connect());

qLog(Debug) << "Saving playlist" << playlist;

QSqlQuery clear("DELETE FROM playlist_items WHERE playlist = :playlist", db);
QSqlQuery insert(
"INSERT INTO playlist_items"
Expand Down

0 comments on commit 27e1c16

Please sign in to comment.