Changed some eecho messages importance
This commit is contained in:
parent
4b7f6a199c
commit
f343cb702e
1 changed files with 4 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue