fix timestamp in error reports

This commit is contained in:
Daniel Larimer 2013-01-28 11:47:33 -05:00
parent 763ae69982
commit f19821dae1
3 changed files with 4 additions and 3 deletions

View file

@ -27,7 +27,7 @@ namespace fc {
fc::string file;
int64_t line;
fc::string method;
uint64_t time;
fc::string time;
fc::optional<fc::value> meta;
};
typedef fc::vector<error_frame> error_context;

View file

@ -3,11 +3,12 @@
#include <fc/sstream.hpp>
#include <fc/value.hpp>
#include <fc/json.hpp>
#include <fc/time.hpp>
#include <boost/exception_ptr.hpp>
namespace fc {
error_frame::error_frame( const fc::string& f, uint64_t l, const fc::string& m, const fc::string& d, fc::value met )
:desc(d),file(fc::path(f).filename().generic_string()),line(l),method(m),meta(fc::move(met)){}
:desc(d),file(fc::path(f).filename().generic_string()),line(l),method(m),meta(fc::move(met)),time(fc::time_point::now()){}
error_report::error_report()
{

View file

@ -1,3 +1,3 @@
add_subdirectory( libssh2-1.4.2 )
#add_subdirectory( zlib-1.2.7)
#add_subdirectory( sigar )
add_subdirectory( sigar )