From 941bb5350f3741333fd11c110f61afcdc222f755 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 18 Oct 2013 17:45:54 +0100 Subject: Show timestamps on "Executing job" messages --- desktop-cronish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desktop-cronish b/desktop-cronish index 5836aee..dc3e79e 100755 --- a/desktop-cronish +++ b/desktop-cronish @@ -136,7 +136,8 @@ class DesktopCronish(cliapp.Application): def execute_job(self, job_name): job = self.jobs[job_name] - self.ts.notify('Executing job %s' % job_name) + self.ts.notify( + '%s Executing job %s' % (time.strftime('%H:%M:%S'), job_name)) self.status('Started command: %s' % job['command']) argv = ['sh', '-c', job['command']] if 'timeout' in job: -- cgit v1.2.1