Revision 609a1e17
src/etc/inc/util.inc | ||
---|---|---|
1937 | 1937 |
* RESULT |
1938 | 1938 |
* null |
1939 | 1939 |
******/ |
1940 |
function log_auth($error) { |
|
1940 |
function log_auth($error, $force_quiet = false) {
|
|
1941 | 1941 |
global $g; |
1942 | 1942 |
$page = $_SERVER['SCRIPT_NAME']; |
1943 |
$level = config_path_enabled('system/webgui', 'quietlogin') ? LOG_NOTICE|LOG_AUTH : LOG_AUTH;
|
|
1943 |
$level = ($force_quiet || config_path_enabled('system/webgui', 'quietlogin')) ? LOG_NOTICE|LOG_AUTH : LOG_AUTH;
|
|
1944 | 1944 |
syslog($level, "{$page}: {$error}"); |
1945 | 1945 |
if (g_get('debug')) { |
1946 | 1946 |
syslog(LOG_WARNING, var_export(debug_backtrace())); |
Also available in: Unified diff
Include GUI logout in auth log. Fix #15719
User logouts do not need to be as loud as user logins. Include
them in the auth log but make them quiet for the console.