Skip to content

Commit

Permalink
Merge pull request #186 from quantcdn/feature/d7-seed-table-2
Browse files Browse the repository at this point in the history
Minor formatting changes for seed log skipping messages.
  • Loading branch information
kepol authored Jul 19, 2023
2 parents d160061 + 7f3935d commit 7cf5f7a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions quant.module
Original file line number Diff line number Diff line change
Expand Up @@ -462,13 +462,13 @@ function quant_seed($url, array $context = array()) {

// Skip based on log data.
if (quant_log_skip_seed($url, $context)) {
quant_log('Quant: Skipping !type !url based on logs. To force reseeding, disable the "Check logs before seeding" configuration option or truncate the {quant_log} database table.', array('!type' => $context['type'], '!url' => $url));
quant_log('Quant: Skipping !type !path based on logs. To force reseeding, disable the "Check logs before seeding" configuration option or truncate the quant_log database table.', array('!type' => $context['type'], '!path' => '/' . $path));
return;
}

// Don't seed admin pages.
if (path_is_admin($path)) {
quant_log('Quant: Skipping admin page !path', array('!path' => $path));
quant_log('Quant: Skipping admin page !path', array('!path' => '/' . $path));
return;
}

Expand Down Expand Up @@ -699,7 +699,8 @@ function quant_seed_file($url, $context = array()) {

// Skip based on log data.
if (quant_log_skip_seed($url, $context)) {
quant_log('Quant: Skipping file !url based on logs. To force reseeding, disable the "Check logs before seeding" configuration option or truncate the {quant_log} database table.', array('!type' => $context['type'], '!url' => $url));
$path = parse_url($url, PHP_URL_PATH);
quant_log('Quant: Skipping !type !path based on logs. To force reseeding, disable the "Check logs before seeding" configuration option or truncate the quant_log database table.', array('!type' => $context['type'], '!path' => $path));
return;
}

Expand Down

0 comments on commit 7cf5f7a

Please sign in to comment.