Issue Description
When setting the log to use journald, there is no details displayed, so the logs are not very useful to debug anything. Logging to a file work fine.
Expected Behavior
It should show display more information, eg the details that I can see if I log in a file, or the one that can be seen on /admin/Management/x:Log.
Actual Behavior
See the logs. There is no details, just the message “JMAP method call”.
Reproduction Steps
- Configure Stalwart to log using journald ( on https://mail.example.org/admin/Settings/x:Tracer , create a Tracer of type Systemd journal, keep all default options)
- Make sure the journald socket is accessible
- Read the log with
journalctl -u stalwart -f
Relevant Log Output
Jul 31 14:54:03 mail.example.org stalwart[673]: JMAP method call
Jul 31 14:56:03 mail.example.org stalwart[673]: HTTP connection ended
Jul 31 14:56:03 mail.example.org stalwart[673]: HTTP connection ended
Stalwart Version
v0.16.x
Installation Method
Built from source
Database Backend
RocksDB
Blob Storage
RocksDB
Search Engine
Internal
Directory Backend
Internal
Additional Context
I am running stalwart in a container on Fedora 44 with a statically built binary (all options turned off, but rocksdb).
Using strace, I can see that stalwart do not write the details to the socket, just SPANID:
[pid 676] sendto(71, "PRIORITY\n\1\0\0\0\0\0\0\0006\nSYSLOG_IDENTIFIER\n\10\0\0\0\0\0\0\0stalwart\nMESSAGE\n\22\0\0\0\0\0\0\0Resource not found\nSPANID\n\22\0\0\0\0\0\0\000321350216473144832\n", 123, MSG_NOSIGNAL, {sa_family=AF_UNIX, sun_path="/run/systemd/journal/socket"}, 30 <unfinished ...>
I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.
on
I have searched this support forum (open and closed topics) and confirm this is not a duplicate.
on
I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.
on