mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-08 07:09:21 +00:00
* 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:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user