summaryrefslogtreecommitdiff
path: root/trace.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-18 23:50:25 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:35:37 -0400
commitba2a54f3d22dacd69d8202fc9a7d32a2b40b1d1e (patch)
tree02bfb4221cf9b73bd57cf6df2abae58f3b365c0b /trace.cc
parent4c460a1c40cfb1547ce9a4c91b4e8a87d768463d (diff)
downloadfork-ledger-ba2a54f3d22dacd69d8202fc9a7d32a2b40b1d1e.tar.gz
fork-ledger-ba2a54f3d22dacd69d8202fc9a7d32a2b40b1d1e.tar.bz2
fork-ledger-ba2a54f3d22dacd69d8202fc9a7d32a2b40b1d1e.zip
Initial round of changes to use boost_date_time
Diffstat (limited to 'trace.cc')
-rw-r--r--trace.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/trace.cc b/trace.cc
index e82b5a5e..45f33c77 100644
--- a/trace.cc
+++ b/trace.cc
@@ -8,8 +8,8 @@ bool trace_mode;
void trace(const std::string& cat, const std::string& str)
{
char buf[32];
- std::strftime(buf, 31, "%H:%M:%S", datetime_t::now.localtime());
- std::cerr << buf << " " << cat << ": " << str << std::endl;
+ std::cerr << now.to_short_string() << " " << cat << ": " << str
+ << std::endl;
}
void trace_push(const std::string& cat, const std::string& str,