What happened?
Calling Craft::error() appears to have no effect in Craft 5.0.5.
Steps to reproduce
- Enable
devMode.
- In a custom module, call
Craft::error('Test error') and Craft::info('Test info') in the init() method.
- Visit the site.
- Open the
web-****-**-**.log file.
Expected behavior
Both test messages should be written to the log file.
[web.ERROR] [application] Test error
[web.INFO] [application] Test info
Actual behaviour
Only the info message is written to the log file.
[web.INFO] [application] Test info
Craft CMS version
5.0.5
What happened?
Calling
Craft::error()appears to have no effect in Craft 5.0.5.Steps to reproduce
devMode.Craft::error('Test error')andCraft::info('Test info')in theinit()method.web-****-**-**.logfile.Expected behavior
Both test messages should be written to the log file.
Actual behaviour
Only the info message is written to the log file.
Craft CMS version
5.0.5