Reduce noisy log entries

There is no need to notify a user who has turned notices off that the code is functioning as intended; only report errors
This commit is contained in:
zebradots 2025-06-06 21:34:53 -05:00 committed by GitHub
parent 664e287102
commit cc5081be8f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,12 +44,12 @@ switch($type){
\gp\tool\Plugins::Action('PageCreated');
if (session_status() == PHP_SESSION_NONE) {
error_log("No active session detected. Attempting session_start()...");
//error_log("No active session detected. Attempting session_start()...");
if (!session_start()) {
error_log("session_start() FAILED.");
die("Session could not be started.");
} else {
error_log("session_start() SUCCEEDED. Session ID: " . session_id());
//error_log("session_start() SUCCEEDED. Session ID: " . session_id());
}
}