Skip to content

Commit

Permalink
Remove some unnecessary verbose logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
eartle committed Sep 3, 2013
1 parent aa4084a commit 4cb414f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/RadioTuner.cpp
Expand Up @@ -190,7 +190,7 @@ RadioTuner::onTuneReturn()

if ( lfm.parse( qobject_cast<QNetworkReply*>(sender()) ) )
{
qDebug() << lfm;
qDebug() << "Tune successful!";

d->m_station.setTitle( lfm["station"]["name"].text() );
d->m_station.setUrl( lfm["station"]["url"].text() );
Expand Down Expand Up @@ -221,7 +221,7 @@ RadioTuner::onGetPlaylistReturn()

if ( lfm.parse( qobject_cast<QNetworkReply*>(sender()) ) )
{
qDebug() << lfm;
qDebug() << "Get playlist successful!";

d->m_station.setTitle( lfm["playlist"]["title"].text() );
// we don't get the radio url in the playlist
Expand Down
12 changes: 0 additions & 12 deletions src/Track.cpp
Expand Up @@ -335,8 +335,6 @@ TrackObject::onGotInfo()

if ( lfm.parse( data ) )
{
qDebug() << lfm;

QString imageUrl = lfm["track"]["image size=small"].text();
if ( !imageUrl.isEmpty() ) m_data.m_images[lastfm::AbstractType::SmallImage] = imageUrl;
imageUrl = lfm["track"]["image size=medium"].text();
Expand Down Expand Up @@ -741,8 +739,6 @@ lastfm::Track::getInfo( QObject *receiver, const char *method, const QString &us
// this is so the web services knows whether to use corrections or not
if (!lastfm::ws::SessionKey.isEmpty()) map["sk"] = lastfm::ws::SessionKey;

qDebug() << map;

QNetworkReply* reply = ws::get( map );

TrackData::Observer observer;
Expand Down Expand Up @@ -822,8 +818,6 @@ lastfm::Track::updateNowPlaying( int duration ) const
if ( !album().isNull() ) map["album"] = album();
map["context"] = extra("playerId");

qDebug() << map;

return ws::post(map);
}

Expand All @@ -833,8 +827,6 @@ lastfm::Track::removeNowPlaying() const
QMap<QString, QString> map;
map["method"] = "track.removeNowPlaying";

qDebug() << map;

return ws::post(map);
}

Expand All @@ -850,8 +842,6 @@ lastfm::Track::scrobble() const
if ( !d->album.title().isEmpty() ) map["album"] = d->album.title();
map["chosenByUser"] = source() == Track::LastFmRadio ? "0" : "1";

qDebug() << map;

return ws::post(map);
}

Expand All @@ -874,8 +864,6 @@ lastfm::Track::scrobble(const QList<lastfm::Track>& tracks)
map["chosenByUser[" + QString::number(i) + "]"] = tracks[i].source() == Track::LastFmRadio ? "0" : "1";
}

qDebug() << map;

return ws::post(map);
}

Expand Down

0 comments on commit 4cb414f

Please sign in to comment.