summaryrefslogtreecommitdiff
path: root/trace.cc
diff options
context:
space:
mode:
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,