From de9a1b57e332413d94fa23e39e5eb8f0e1f70a97 Mon Sep 17 00:00:00 2001 From: Tristan Matthews <le.businessman@gmail.com> Date: Sat, 28 Apr 2012 18:28:56 -0400 Subject: [PATCH] * #9832: cleanup logging --- daemon/src/history/history.cpp | 6 +++--- daemon/src/iax/iaxvoiplink.cpp | 6 ------ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/daemon/src/history/history.cpp b/daemon/src/history/history.cpp index 42284b99fa..d812d04e3c 100644 --- a/daemon/src/history/history.cpp +++ b/daemon/src/history/history.cpp @@ -64,7 +64,7 @@ bool History::load(int limit) bool History::save() { - DEBUG("History: Saving history in XDG directory: %s", path_.c_str()); + DEBUG("Saving history in XDG directory: %s", path_.c_str()); ensurePath(); std::sort(items_.begin(), items_.end()); std::ofstream outfile(path_.c_str()); @@ -99,7 +99,7 @@ void History::ensurePath() if (mkdir(userdata.data(), 0755) != 0) { // If directory creation failed if (errno != EEXIST) { - DEBUG("History: Cannot create directory: %m"); + DEBUG("Cannot create directory: %m"); return; } } @@ -126,7 +126,7 @@ void History::setPath(const std::string &path) void History::addCall(Call *call, int limit) { if (!call) { - ERROR("History: Call is NULL, ignoring"); + ERROR("Call is NULL, ignoring"); return; } call->time_stop(); diff --git a/daemon/src/iax/iaxvoiplink.cpp b/daemon/src/iax/iaxvoiplink.cpp index 8a0e82242c..5d23cc77c5 100644 --- a/daemon/src/iax/iaxvoiplink.cpp +++ b/daemon/src/iax/iaxvoiplink.cpp @@ -209,8 +209,6 @@ IAXVoIPLink::getIAXCall(const std::string& id) void IAXVoIPLink::sendRegister(Account *a) { - DEBUG("Send register"); - IAXAccount *account = dynamic_cast<IAXAccount*>(a); if (account->getHostname().empty()) @@ -282,8 +280,6 @@ IAXVoIPLink::answer(Call *call) void IAXVoIPLink::hangup(const std::string& id) { - DEBUG("IAXVoIPLink: Hangup"); - IAXCall* call = getIAXCall(id); if (call == NULL) @@ -304,8 +300,6 @@ IAXVoIPLink::hangup(const std::string& id) void IAXVoIPLink::peerHungup(const std::string& id) { - DEBUG("IAXVoIPLink: Peer hung up"); - IAXCall* call = getIAXCall(id); if (call == NULL) -- GitLab