mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-10 16:19:23 +00:00
using lt_log_print
replaced push_log_std with lt_log_print using LOG_TORRENT_WARN.
This commit is contained in:
@@ -139,8 +139,8 @@ apply_d_change_link(core::Download* download, const torrent::Object::list_type&
|
|||||||
switch (changeType) {
|
switch (changeType) {
|
||||||
case 0:
|
case 0:
|
||||||
if (symlink(target.c_str(), link.c_str()) == -1){
|
if (symlink(target.c_str(), link.c_str()) == -1){
|
||||||
control->core()->push_log_std("create_link failed: "
|
lt_log_print(torrent::LOG_TORRENT_WARN, "create_link failed: %s",
|
||||||
+ std::string(rak::error_number::current().c_str()));
|
rak::error_number::current().c_str());
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -151,8 +151,8 @@ apply_d_change_link(core::Download* download, const torrent::Object::list_type&
|
|||||||
|
|
||||||
if (!fileStat.update_link(link) || !fileStat.is_link() ||
|
if (!fileStat.update_link(link) || !fileStat.is_link() ||
|
||||||
unlink(link.c_str()) == -1){
|
unlink(link.c_str()) == -1){
|
||||||
control->core()->push_log_std("delete_link failed: "
|
lt_log_print(torrent::LOG_TORRENT_WARN, "delete_link failed: %s",
|
||||||
+ std::string(rak::error_number::current().c_str()));
|
rak::error_number::current().c_str());
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user