* Changing push_log calls to the new logging facility.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1284 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2011-09-21 05:07:06 +00:00
parent 156d69c854
commit 4914d798f1
10 changed files with 44 additions and 31 deletions
+2 -1
View File
@@ -42,6 +42,7 @@
#include <sigc++/adaptors/hide.h>
#include <torrent/exceptions.h>
#include <torrent/torrent.h>
#include <torrent/utils/log.h>
#include "core/download.h"
#include "core/download_list.h"
@@ -328,7 +329,7 @@ DownloadList::receive_exit_input(Input type) {
}
} catch (torrent::input_error& e) {
control->core()->push_log(e.what());
lt_log_print(torrent::LOG_WARN, "Input failed: %s", e.what());
}
activate_display(DISPLAY_DOWNLOAD_LIST);
+3 -2
View File
@@ -39,6 +39,7 @@
#include <sigc++/adaptors/bind.h>
#include <torrent/exceptions.h>
#include <torrent/object.h>
#include <torrent/utils/log.h>
#include "core/download.h"
#include "core/manager.h"
@@ -152,7 +153,7 @@ ElementDownloadList::receive_command(const char* cmd) {
m_view->set_last_changed();
} catch (torrent::input_error& e) {
control->core()->push_log(e.what());
lt_log_print(torrent::LOG_WARN, "Command failed: %s", e.what());
return;
}
}
@@ -194,7 +195,7 @@ ElementDownloadList::receive_cycle_throttle() {
core::Download* download = *m_view->focus();
if (download->is_active()) {
control->core()->push_log("Cannot change throttle on active download.");
lt_log_print(torrent::LOG_TORRENT_WARN, "Cannot change throttle on active download.");
return;
}