auth/update-hook/pm: make &log() a common function
This commit is contained in:
parent
90fed77927
commit
0b960cfae2
3 changed files with 14 additions and 14 deletions
|
@ -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?
|
||||
# ----------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue