Calls to non-existent method warning() of LoggerManager #10479
Labels
Area: Clean Up
Issues & PRs related to all things regarding to technical debt and log files
Priority:Important
Issues & PRs that are important; broken functions, errors - there are workarounds
Severity: Minor
Function rarely used and has no impact
Type: Bug
Bugs within the core SuiteCRM codebase
Issue
The LoggerManager has a generic method __call() that is called in case a method is invoked that does not exist in the class. This __call() method locates the trace level configured in SuiteCRM and calls the related method, that is, if we have the error level configured, it will call the error() method and if we have fatal, it will call fatal(), and consequently, these messages are always shown in suitecrm.log
Possible Fix
No response
Steps to Reproduce the Issue
and change the following line to cause it to enter the logger:
$cronUser = getRunningUser();
-->$cronUser = '';
Context
No response
Version
8.14.3
What browser are you currently using?
Firefox
Browser Version
128.0.3 (64-bit)
Environment Information
MySQL, PHP Version 7.4.33
Operating System and Version
Ubuntu 22.04.4 LTS
The text was updated successfully, but these errors were encountered: