Open fengluo2 opened 1 month ago
Hi, What's the pb exactly? Email sending is not working at all? Or it's the log level that does not behave as expected?
FYI, a successful test email sending only logs one line: Notification of type TestEmailSettingNotification sent via channel [channelName] to user ID #[userid]
(with log level info
)
The log level debug is specified, but the output log is still info
I'm afraid you've misunderstood how the log system works. The LOG_LEVEL
specified in your .env configuration determines which log lines are written to the logs: Each log line is defined with a log level in the application codebase. The LOG_LEVEL
env var tells the app the minimum level to log.
For example, if you set LOG_LEVEL=debug
, all possible log lines will be written to the log channel as debug
is the lower level. In short, it tells the app "Hey, log everything, from debug lines to emergency lines"
But if you set LOG_LEVEL=info
, only informational log lines and higher will be written to the log channel.
You can find all log levels with the severity order here: https://datatracker.ietf.org/doc/html/rfc5424#section-6.2.1
yes,so setting LOG_LEVEL=debug
,but not having email notification log. @Bubka
hum, I don't think ssl
is a valid value for MAIL_ENCRYPTION
. Try tls
instead.
Nothing happened...I'll try Google Mail
Version
5.2.0
Details & Steps to reproduce
The image is from dockerhub, and there is no log of sending emails. Click test to send, and you can see from the log that the time is obviously slower than other requests, and it is being processed. The log level debug is specified, but the output log is still info. Docker env config:
Is it a problem with my configuration?
Expectation
I can specify the log level and send emails
Error & Logs
Execution environment
Date: Mon, 16 Sep 2024 01:00:18 +0800 userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Version: 5.2.0 Environment: local Install path: / Debug: true Cache driver: file Log channel: daily Log level: DB driver: sqlite PHP version: 8.2.19 Operating system: Linux interface: fpm-fcgi Auth guard: web-guard webauthn user verification: preferred Trusted proxies: none lastRadarScan: 1970-01-01 00:00:00
Containerization
Additional information
No response