diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-10-18 17:45:54 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-10-18 17:45:54 +0100 |
commit | 941bb5350f3741333fd11c110f61afcdc222f755 (patch) | |
tree | bd0213a3368cf69c313150b39a19b5bd53a9c47f | |
parent | d1d623f24a95c00f94544553ff8afc2ed38aaa6f (diff) | |
download | desktop-cronish-941bb5350f3741333fd11c110f61afcdc222f755.tar.gz |
Show timestamps on "Executing job" messages
-rwxr-xr-x | desktop-cronish | 3 |
1 files changed, 2 insertions, 1 deletions
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: |