diff options
author | Sitaram Chamarty <sitaram@atc.tcs.com> | 2012-02-14 20:17:00 +0530 |
---|---|---|
committer | Sitaram Chamarty <sitaram@atc.tcs.com> | 2012-02-21 12:19:05 +0530 |
commit | ceb11543b1995b5057290b762939ce22f5436fd5 (patch) | |
tree | ac51b871286a8d3431261c708c43541167aaa41a | |
parent | simplified steps for moving servers (diff) | |
download | gitolite-gentoo-ceb11543b1995b5057290b762939ce22f5436fd5.tar.gz gitolite-gentoo-ceb11543b1995b5057290b762939ce22f5436fd5.tar.bz2 gitolite-gentoo-ceb11543b1995b5057290b762939ce22f5436fd5.zip |
make log_it() put out a little more info if called prematurely
-rw-r--r-- | src/gitolite.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gitolite.pm b/src/gitolite.pm index 062706f..27b761a 100644 --- a/src/gitolite.pm +++ b/src/gitolite.pm @@ -164,7 +164,9 @@ sub dos2unix { sub log_it { my ($ip, $logmsg); - open my $log_fh, ">>", $ENV{GL_LOG} or die "open log failed: $!\n"; + open my $log_fh, ">>", $ENV{GL_LOG} or die + "open log failed: $!\n" . + "attempting to log: " . ( $_[0] || '(nothing)' ) . "\n"; # first space sep field is client ip, per "man ssh" ($ip = $ENV{SSH_CONNECTION} || '(no-IP)') =~ s/ .*//; # the first part of logmsg is the actual command used; it's either passed |