$env->{'gruntmaster.problem'} = $1 if s,^/pb/$word/,/,;
$env->{'gruntmaster.contest'} = $1 if s,^/ct/$word/,/,;
$env->{'gruntmaster.user'} = $1 if s,^/us/$word/,/,;
+ $env->{'gruntmaster.page'} //= -1 if m,^/log/$,;
}
$app->($env);
}
Log::Log4perl->init('log.conf');
my $access_logger = Log::Log4perl->get_logger('access');
+$ENV{DBIC_NULLABLE_KEY_NOWARN} = 1;
builder {
enable_if { $_[0]->{PATH_INFO} eq '/ok' } sub { sub{ [200, [], []] }};