Skip to content

Commit

Permalink
Fix to exclude from logging
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Nov 19, 2024
1 parent 7c384dd commit 85f1b12
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion authentic-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1870,7 +1870,7 @@ sub init_type

sub init
{
# Don't log XHR requests
# Don't log XHR requests (exclude from logs)
my %tmp_miniserv;
get_miniserv_config(\%tmp_miniserv);
my $nolog = quotemeta('/stats.cgi?xhr-stats=general');
Expand All @@ -1880,6 +1880,13 @@ sub init
put_miniserv_config(\%tmp_miniserv);
reload_miniserv();
}
my $webpref = "$theme_webprefix/";
my $nologerr = "${webpref}404.cgi ${webpref}403.cgi ${webpref}401.cgi";
if ($tmp_miniserv{'nolog'} ne $nologerr) {
$tmp_miniserv{'nolog'} = $nologerr;
put_miniserv_config(\%tmp_miniserv);
reload_miniserv();
}

# Make sure that config directory exists
theme_make_config_dir();
Expand Down

0 comments on commit 85f1b12

Please sign in to comment.