Skip to content

Commit 7cf5f7a

Browse files
authored
Merge pull request #186 from quantcdn/feature/d7-seed-table-2
Minor formatting changes for seed log skipping messages.
2 parents d160061 + 7f3935d commit 7cf5f7a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

quant.module

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,13 +462,13 @@ function quant_seed($url, array $context = array()) {
462462

463463
// Skip based on log data.
464464
if (quant_log_skip_seed($url, $context)) {
465-
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));
465+
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));
466466
return;
467467
}
468468

469469
// Don't seed admin pages.
470470
if (path_is_admin($path)) {
471-
quant_log('Quant: Skipping admin page !path', array('!path' => $path));
471+
quant_log('Quant: Skipping admin page !path', array('!path' => '/' . $path));
472472
return;
473473
}
474474

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

700700
// Skip based on log data.
701701
if (quant_log_skip_seed($url, $context)) {
702-
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));
702+
$path = parse_url($url, PHP_URL_PATH);
703+
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));
703704
return;
704705
}
705706

0 commit comments

Comments
 (0)