mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
debug: show client ip of bad requests
This commit is contained in:
parent
460574c555
commit
777f39314c
1 changed files with 4 additions and 2 deletions
|
@ -304,9 +304,11 @@ class CWebApplication extends CApplication
|
|||
$controller->run($actionID);
|
||||
$this->_controller=$oldController;
|
||||
}
|
||||
else
|
||||
throw new CHttpException(404,Yii::t('yii','CWebApp: Unable to resolve the request "{route}".',
|
||||
else {
|
||||
$client_ip = arraySafeVal($_SERVER,'REMOTE_ADDR');
|
||||
throw new CHttpException(404, $client_ip.': '.Yii::t('yii','CWebApp: Unable to resolve the request "{route}".',
|
||||
array('{route}'=>$route===''?$this->defaultController:$route)));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue