Im getting tons of the following message in the logs
2016-04-07 19:45:07 [ipaddress][-][-][info][application] $_GET = [
…
]
$_SESSION = [
…
]
$_SERVER = [
…
]
Any idea of what could be triggering it ?
thanks
B.
Im getting tons of the following message in the logs
2016-04-07 19:45:07 [ipaddress][-][-][info][application] $_GET = [
…
]
$_SESSION = [
…
]
$_SERVER = [
…
]
Any idea of what could be triggering it ?
thanks
B.
If logging of “info”-level log messages is active (shouldn’t be in production), every single request triggers this message. And anywhere in the framework or your code where this method is called: Yii::info()
i dont have any Yii::info and my log level in web config is error and warning
‘log’ => [
'targets' => [
[
...
'levels' => ['error', 'warning'],
]
should i look somewhere else ?
thanks
B.
Did you look into all your config files?
They’re loaded in “web/index.php”. It should something like this:
$config = yii\helpers\ArrayHelper::merge(
require(__DIR__ . '/../../common/config/main.php'),
require(__DIR__ . '/../../common/config/main-local.php'),
require(__DIR__ . '/../config/main.php'),
require(__DIR__ . '/../config/main-local.php')
);
And as mentioned, every request generates an info log message. Plus a few more calls throughout the framework.
Yeah, that’s what it looks like, every single request is generating that.
Im actually using the basic version, not the advanced so i only have params, web, db and console, and no info level on any of those. ![]()
Did you omit the "levels" parameter in one of your targets? If so all levels will be logged.
console and web have the same
‘levels’ => [‘error’, ‘warning’],
ok found it, it just happened that i was still seeing info messages because it was using the cache.
thanks for your help.