From c1390f168d64ac98b3243b1cafa8674be95fb903 Mon Sep 17 00:00:00 2001 From: Emil Williams Date: Wed, 20 Aug 2025 22:36:21 +0000 Subject: Logging --- gorillanest.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gorillanest.pl') diff --git a/gorillanest.pl b/gorillanest.pl index 53d3a9d..49a6e4e 100755 --- a/gorillanest.pl +++ b/gorillanest.pl @@ -22,7 +22,7 @@ sub info { # significant dirs only sub GN::directories { my $root = $_[0]; - opendir my $dir, $root or die "Cannot open directory: $!"; + opendir my $dir, $root or die "$root: $!"; my @directories; my %drop = ( '.' => 0, @@ -62,7 +62,7 @@ sub GN::repository { # /$username/$repository } sub GN::main { - open STDERR, '>', '/tmp/gorillanest.log' or die "You Will Never Ever See This Message Hopefully: $!"; + open STDERR, '>', LOG_FILE or die LOG_FILE . ": $!"; my $sock = FCGI::OpenSocket('/tmp/gorillanest.socket', 100); try { my $root = GIT_ROOT; -- cgit v1.2.3