From 77ca4d59e816912a838242d2af118f7d13f0dbba Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sat, 8 Nov 2008 16:50:04 +0100 Subject: [PATCH] be more verbose about connection type (thx to Dieter_be) --- src/scrobby.cpp | 6 +++--- src/song.cpp | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/scrobby.cpp b/src/scrobby.cpp index f1a2208..ee6d1e8 100644 --- a/src/scrobby.cpp +++ b/src/scrobby.cpp @@ -204,13 +204,13 @@ namespace { Mpd->Disconnect(); if (Mpd->Connect()) { - Log(llInfo, "Connected to %s !", config.mpd_host.c_str()); + Log(llInfo, "Connected to MPD at %s !", config.mpd_host.c_str()); x = 0; } else { x++; - Log(llInfo, "Cannot connect, retrieving in %d seconds...", 10*x); + Log(llInfo, "Cannot connect to MPD, retrieving in %d seconds...", 10*x); sleep(10*x); } } @@ -290,7 +290,7 @@ namespace { else { x++; - Log(llInfo, "Connection refused, retrieving in %d seconds...", 10*x); + Log(llInfo, "Connection to Audioscrobbler refused, retrieving in %d seconds...", 10*x); sleep(10*x); } pthread_mutex_unlock(&handshake_lock); diff --git a/src/song.cpp b/src/song.cpp index d513c4e..68994f4 100644 --- a/src/song.cpp +++ b/src/song.cpp @@ -67,7 +67,6 @@ void MPD::Song::SetData(mpd_Song *song) mpd_freeSong(itsSong); itsSong = song; itsIsStream = strncmp("http://", itsSong->file, 7) == 0; - } void MPD::Song::SetStartTime() -- 2.11.4.GIT