Log memcached new connections when logging is off.

This commit is contained in:
Retro_Guy 2024-06-06 02:38:30 -07:00
parent 662dc7e0fe
commit bb3cfd30b2
1 changed files with 1 additions and 3 deletions

View File

@ -51,9 +51,7 @@ if ($enable_memcache) {
))) { ))) {
file_put_contents($logdir . '/memcache.log', "\n" . format_log_date() . ' Failed to connect memcache ' . $memcache_server . ':' . $memcache_port, FILE_APPEND); file_put_contents($logdir . '/memcache.log', "\n" . format_log_date() . ' Failed to connect memcache ' . $memcache_server . ':' . $memcache_port, FILE_APPEND);
} else { } else {
if ($enable_memcache_logging) { file_put_contents($logdir . '/memcache.log', "\n" . format_log_date() . ' Connected memcache ' . $memcache_server . ':' . $memcache_port, FILE_APPEND);
file_put_contents($logdir . '/memcache.log', "\n" . format_log_date() . ' Connected memcache ' . $memcache_server . ':' . $memcache_port, FILE_APPEND);
}
} }
} }
} }