Question: Global log level
sysPass Version: 3.1
Describe the question: I want to globally change log level from INFO to WARN or higher. Is it somehow possible? I have full error.log of logs like:
[Sun Feb 14 17:54:40.960708 2021] [php7:notice] [pid 26677] [client 10.31.0.1:14232] [INFO] [Extensions checked] SP\\Core\\PhpExtensionChecker::checkMandatory
[Sun Feb 14 17:54:41.237426 2021] [php7:notice] [pid 26677] [client 10.31.0.1:14232] [INFO] [Loaded icons cache] SP\\Core\\UI\\Theme::initIcons
[Sun Feb 14 17:54:41.239016 2021] [php7:notice] [pid 26677] [client 10.31.0.1:14232] [INFO] [Loaded actions cache] SP\\Core\\Acl\\Actions::loadCache
[Sun Feb 14 17:54:41.247632 2021] [php7:notice] [pid 26681] [client 10.31.0.1:57462] [INFO] [Extensions checked] SP\\Core\\PhpExtensionChecker::checkMandatory, referer: https://1.2.3.4/
[Sun Feb 14 17:54:41.386600 2021] [php7:notice] [pid 26681] [client 10.31.0.1:57462] [INFO] [Loaded icons cache] SP\\Core\\UI\\Theme::initIcons, referer: https://147.32.211.205/
[Sun Feb 14 17:54:41.388143 2021] [php7:notice] [pid 26681] [client 10.31.0.1:57462] [INFO] [Loaded actions cache] SP\\Core\\Acl\\Actions::loadCache, referer: https://1.2.3.4/
... Which is caused by monitoring that requests syspass every 15secs. I don't care about these messages but there are tons of them
Platform (please complete the following information):
- OS: [e.g. Linux, Android]: Linux
- OS Version: Debian 10
- Browser [e.g. Firefox, Chrome]: none
Additional context
SysPass is hosted in apache 2.4 with mod_php7.3
Thank you
same question for me
i reduced the spamload of false errors in nginx log by changing some default INFO levels to DEBUG, because the sysPass logger logs some stoff wronlgy until its initilaized by the app later on
You can modify
- lib/SP/Core/Acl/Actions.php -> logger('Loaded actions cache', 'DEBUG');
- lib/SP/Core/UI/Theme.php -> logger('Loaded icons cache', 'DEBUG');
- lib/SP/Core/PhpExtensionChecker.php -> logger('Extensions checked', 'DEBUG');