aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bbot/worker/worker.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/bbot/worker/worker.cxx b/bbot/worker/worker.cxx
index 2105939..6952af6 100644
--- a/bbot/worker/worker.cxx
+++ b/bbot/worker/worker.cxx
@@ -18,6 +18,7 @@
#include <libbutl/pager.mxx>
#include <libbutl/prompt.mxx>
#include <libbutl/utility.mxx> // to_utf8()
+#include <libbutl/timestamp.mxx>
#include <libbutl/filesystem.mxx>
#include <libbutl/string-parser.mxx>
@@ -305,9 +306,14 @@ run_cmd (step_id step,
if (bkp_step && *bkp_step == step)
prompt (sid + " step is reached");
+ string ts (to_string (system_clock::now (),
+ "%Y-%m-%d %H:%M:%S%[.N] %Z",
+ true /* special */,
+ true /* local */));
+
// Log the step id and the command to be executed.
//
- l3 ([&]{t << "step id: " << sid;});
+ l3 ([&]{t << "step id: " << sid << ' ' << ts;});
#ifndef _WIN32
log += "# step id: ";
@@ -315,6 +321,8 @@ run_cmd (step_id step,
log += "rem step id: ";
#endif
log += sid;
+ log += ' ';
+ log += ts;
log += '\n';
t (c, n);