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)
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();
......
......@@ -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)
......
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