Skip to content
Snippets Groups Projects
Commit de9a1b57 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #9832: cleanup logging

parent f8a9a027
No related branches found
No related tags found
No related merge requests found
...@@ -64,7 +64,7 @@ bool History::load(int limit) ...@@ -64,7 +64,7 @@ bool History::load(int limit)
bool History::save() 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(); ensurePath();
std::sort(items_.begin(), items_.end()); std::sort(items_.begin(), items_.end());
std::ofstream outfile(path_.c_str()); std::ofstream outfile(path_.c_str());
...@@ -99,7 +99,7 @@ void History::ensurePath() ...@@ -99,7 +99,7 @@ void History::ensurePath()
if (mkdir(userdata.data(), 0755) != 0) { if (mkdir(userdata.data(), 0755) != 0) {
// If directory creation failed // If directory creation failed
if (errno != EEXIST) { if (errno != EEXIST) {
DEBUG("History: Cannot create directory: %m"); DEBUG("Cannot create directory: %m");
return; return;
} }
} }
...@@ -126,7 +126,7 @@ void History::setPath(const std::string &path) ...@@ -126,7 +126,7 @@ void History::setPath(const std::string &path)
void History::addCall(Call *call, int limit) void History::addCall(Call *call, int limit)
{ {
if (!call) { if (!call) {
ERROR("History: Call is NULL, ignoring"); ERROR("Call is NULL, ignoring");
return; return;
} }
call->time_stop(); call->time_stop();
......
...@@ -209,8 +209,6 @@ IAXVoIPLink::getIAXCall(const std::string& id) ...@@ -209,8 +209,6 @@ IAXVoIPLink::getIAXCall(const std::string& id)
void void
IAXVoIPLink::sendRegister(Account *a) IAXVoIPLink::sendRegister(Account *a)
{ {
DEBUG("Send register");
IAXAccount *account = dynamic_cast<IAXAccount*>(a); IAXAccount *account = dynamic_cast<IAXAccount*>(a);
if (account->getHostname().empty()) if (account->getHostname().empty())
...@@ -282,8 +280,6 @@ IAXVoIPLink::answer(Call *call) ...@@ -282,8 +280,6 @@ IAXVoIPLink::answer(Call *call)
void void
IAXVoIPLink::hangup(const std::string& id) IAXVoIPLink::hangup(const std::string& id)
{ {
DEBUG("IAXVoIPLink: Hangup");
IAXCall* call = getIAXCall(id); IAXCall* call = getIAXCall(id);
if (call == NULL) if (call == NULL)
...@@ -304,8 +300,6 @@ IAXVoIPLink::hangup(const std::string& id) ...@@ -304,8 +300,6 @@ IAXVoIPLink::hangup(const std::string& id)
void void
IAXVoIPLink::peerHungup(const std::string& id) IAXVoIPLink::peerHungup(const std::string& id)
{ {
DEBUG("IAXVoIPLink: Peer hung up");
IAXCall* call = getIAXCall(id); IAXCall* call = getIAXCall(id);
if (call == NULL) if (call == NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment