Browse Source

Added warning log when access to gii and debugger is denied due to IP restriction.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
182dfb39dc
  1. 1
      extensions/debug/Module.php
  2. 1
      extensions/gii/Module.php

1
extensions/debug/Module.php

@ -106,6 +106,7 @@ class Module extends \yii\base\Module
return true;
}
}
Yii::warning('Access to debugger is denied due to IP address restriction. The requested IP is ' . $ip, __METHOD__);
return false;
}

1
extensions/gii/Module.php

@ -125,6 +125,7 @@ class Module extends \yii\base\Module
return true;
}
}
Yii::warning('Access to Gii is denied due to IP address restriction. The requested IP is ' . $ip, __METHOD__);
return false;
}

Loading…
Cancel
Save