Regenerate log index after each job
[gruntmaster-daemon.git] / lib / Gruntmaster / Daemon.pm
index 6991b7a00a2481fa67971c225bacaf308dda20e1..78b39e4c3f3ee6ad29328b3303db1907c78f658d 100644 (file)
@@ -132,6 +132,7 @@ sub process{
   my $log = $meta->{contest} ? "ct/$meta->{contest}/log" : 'log';
   PUBLISH gensrc => $job;
   PUBLISH genpage => "$log/job/$job.html";
+  PUBLISH genpage => "$log/index.html";
   my $page = ($job + Gruntmaster::Page::Log::PAGE_SIZE - 1) / Gruntmaster::Page::Log::PAGE_SIZE;
   PUBLISH genpage => "$log/$page.html"
 }
@@ -149,7 +150,7 @@ sub got_job{
 }
 
 sub run{
-  Log::Log4perl->init('/etc/gruntmasterd-log.conf');
+  Log::Log4perl->init('/etc/gruntmasterd/gruntmasterd-log.conf');
   get_logger->info("gruntmasterd $VERSION started");
   chdir tempdir 'gruntmasterd.XXXX', CLEANUP => 1, TMPDIR => 1;
   SUBSCRIBE jobs => \&got_job;
This page took 0.009636 seconds and 4 git commands to generate.