haiwen / seafile

High performance file syncing and sharing, with also Markdown WYSIWYG editing, Wiki, file label and other knowledge management features.
http://seafile.com/
Other
12.25k stars 1.54k forks source link

Add loglevels and more log messages #1184

Closed forouher closed 8 years ago

forouher commented 9 years ago

The log files of seafile-server are very hard to understand for a system administrator. First, a lot of log output is not interesting. Examples:

ccnet.log:

[04/18/15 18:28:46] ../common/session.c(375): Accepted a local client [04/18/15 18:28:47] ../common/session.c(375): Accepted a local client [04/18/15 18:29:05] ../common/peer.c(943): Local peer down [04/18/15 18:29:05] ../common/processor.c(218): [Proc] Shutdown processor threaded-rpcserver-proc(-1001) for bad update: 515 peer down [04/18/15 18:29:06] ../common/session.c(375): Accepted a local client [04/18/15 18:29:07] ../common/peer.c(943): Local peer down

controller.log:

[04/10/15 11:18:04] seafile-controller.c(88): spawned seaf-server, pid 2953 [04/10/15 11:18:04] seafile-controller.c(529): seafdav not enabled. [04/11/15 12:44:56] seafile-controller.c(154): starting ccnet-server ... [04/11/15 12:44:56] seafile-controller.c(73): spawn_process: ccnet-server -c /usb-hdd/seafile/ccnet -f /usb-hdd/seafile/logs/ccnet.log -d -P /usb-hdd/seafile/pids/ccnet.pid [04/11/15 12:44:56] seafile-controller.c(88): spawned ccnet-server, pid 2960 [04/11/15 12:44:57] seafile-controller.c(556): ccnet daemon connected. [04/11/15 12:44:57] seafile-controller.c(185): starting seaf-server ...

seafile.log:

[04/07/15 11:36:11] ../common/mq-mgr.c(60): [mq client] mq cilent is started [04/07/15 11:36:11] ../common/mq-mgr.c(106): [mq mgr] publish to hearbeat mq: seaf_server.heartbeat [04/07/15 11:36:11] listen-mgr.c(115): listen on port 12001 for block tranfer

These messages may be important for developers, but as a system administrator I wouldn't know what to make of them. At the same time many important things are happening that leave no trace in the log files at all, like:

So I'd like to suggest:

shoeper commented 8 years ago

To keep the issue tracker clean this feature request has been moved to https://forum.seafile-server.org/t/add-loglevels-and-more-log-messages/4353

LeonardoGentile commented 7 years ago

@shoeper the link is dead

shoeper commented 7 years ago

https://forum.seafile.de/t/add-loglevels-and-more-log-messages/4353