Added logging, currently shows failed torrent creations but does not

time out the log messages.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@307 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-02-25 22:05:15 +00:00
parent f66424f642
commit 9fe97ee490
17 changed files with 220 additions and 21 deletions
+23
View File
@@ -0,0 +1,23 @@
#include "config.h"
#include <algorithm>
#include "log.h"
#include "utils/functional.h"
namespace core {
void
Log::push_front(const std::string& msg) {
Base::push_front(Type(utils::Timer::cache(), msg));
m_signalUpdate.emit();
}
Log::iterator
Log::find_older(utils::Timer t) {
return std::find_if(begin(), end(), func::on(func::mem_ptr_ref(&Type::first),
std::bind1st(std::less_equal<utils::Timer>(), t)));
}
}