From f343cb702e7933daa55af507030e69a37e9a9fe9 Mon Sep 17 00:00:00 2001 From: pezcurrel Date: Sat, 10 Dec 2022 13:57:30 +0100 Subject: [PATCH] Changed some eecho messages importance --- web/clitools/crawler.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web/clitools/crawler.php b/web/clitools/crawler.php index eb73711..68b8769 100755 --- a/web/clitools/crawler.php +++ b/web/clitools/crawler.php @@ -214,7 +214,7 @@ $instsjfp=__DIR__.'/instances.job'; $currinstjfp=__DIR__.'/currinst.job'; if (!$opts['dontrestore'] && file_exists($currinstjfp) && file_exists($instsjfp)) { - eecho(1,'looks like previous session was interrupted, i try to recover it...'.N); + eecho(0,'looks like previous session was interrupted, trying to recover it...'.N); $buf=@file($instsjfp,FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES) or mexit('could not open file «'.$instsjfp.'» for reading.'.N,1); $insts=array(); @@ -225,6 +225,7 @@ if (!$opts['dontrestore'] && file_exists($currinstjfp) && file_exists($instsjfp) $buf=explode("\t",$buf[0]); $currinst=array('dom'=>$buf[0], 'i'=>$buf[1], 'qok'=>$buf[2], 'qgood'=>$buf[3]); $recover=true; + eecho(1,'recovered previous session.'.N); } function truncs($str,$tab,$col,$ctx) { @@ -312,7 +313,7 @@ if (!$recover) { if (!willtrunc($pdom,'Instances','URI')) $insts[]=$pdom; else - eecho(2,'ignoring instance «'.$pdom.'» because its hostname si too long for column «URI» of table «Instances».'.N); + eecho(2,'ignoring instance «'.$pdom.'» because its hostname is too long for column «URI» of table «Instances».'.N); else eecho(1,'ignoring instance «'.$pdom.'» because it is dead.'.N); } @@ -751,7 +752,7 @@ while ($i<$cinsts) { ckratelimit($tags['headers']); $tags=@json_decode($tags['cont'],true); if (is_array($tags) && count($tags)>0) { - eecho(0,'«'.$host.'»: got '.count($tags).' tag(s) for user «'.$user['username'].'» :-)'.N); + eecho(1,'«'.$host.'»: got '.count($tags).' tag(s) for user «'.$user['username'].'» :-)'.N); foreach($tags as $tag) $user['tags'][]=$tag['name']; } } else {