[tbb-commits] [tor-browser-build/master] Bug 40231: Print start and exit time in sign-nightly output
gk at torproject.org
gk at torproject.org
Mon Feb 22 14:31:51 UTC 2021
commit f2fa01e29f827d1bfce1010bbe3b9b6eb963d55d
Author: Nicolas Vigier <boklm at torproject.org>
Date: Mon Feb 15 19:34:53 2021 +0100
Bug 40231: Print start and exit time in sign-nightly output
---
tools/signing/nightly/sign-nightly | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/tools/signing/nightly/sign-nightly b/tools/signing/nightly/sign-nightly
index 2009fbc..c2aa61a 100755
--- a/tools/signing/nightly/sign-nightly
+++ b/tools/signing/nightly/sign-nightly
@@ -45,6 +45,15 @@ my $topdir = "$FindBin::Bin/../../..";
}
}
+sub print_time {
+ my $dt = DateTime->now;
+ print $dt->ymd, " ", $dt->hms, " - ", @_;
+}
+
+END {
+ print_time "Exiting sign-nightly (pid: $$)\n";
+}
+
sub run_alone {
my $pidfile = "$FindBin::Bin/lock";
if (-f $pidfile) {
@@ -250,6 +259,7 @@ sub sync_dest {
}
}
+print_time "Starting sign-nightly (pid: $$)\n";
run_alone;
my $some_updates = 0;
foreach my $publish_dir (@{$config->{publish_dirs}}) {
More information about the tbb-commits
mailing list