mirror of
https://github.com/gtbu/Typesetter-5.3-p8.git
synced 2025-06-25 09:43:14 +02:00
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:
parent
664e287102
commit
cc5081be8f
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue