auth/update-hook/pm: make &log() a common function

This commit is contained in:
Sitaram Chamarty 2010-01-31 23:10:12 +05:30 committed by Sitaram Chamarty
parent 90fed77927
commit 0b960cfae2
3 changed files with 14 additions and 14 deletions

View file

@ -42,6 +42,12 @@ sub wrap_open {
return $fh;
}
sub log_it {
open my $log_fh, ">>", $ENV{GL_LOG} or die "open log failed: $!\n";
print $log_fh @_;
close $log_fh or die "close log failed: $!\n";
}
# ----------------------------------------------------------------------------
# where is the rc file hiding?
# ----------------------------------------------------------------------------