Explorar el Código

make sure default log is in tpsgi dir

George Baugh hace 5 meses
padre
commit
d5dcc364ab
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/TPSGI.pm

+ 1 - 1
lib/TPSGI.pm

@@ -97,7 +97,7 @@ sub log {
     state $log;
     return $log if $log;
 
-    my $LOGNAME = abs_path('.') . '/log/tpsgi.log';
+    my $LOGNAME = "$self->{tpsgi_dir}/log/tpsgi.log";
     $LOGNAME = $self->{custom_log} if $self->{custom_log};
 
     my $LOGDIR = dirname($LOGNAME);