{"action":"created","issue":{"url":"https://api.github.com/repos/haiwen/seafile/issues/1184","repository_url":"https://api.github.com/repos/haiwen/seafile","labels_url":"https://api.github.com/repos/haiwen/seafile/issues/1184/labels{/name}","comments_url":"https://api.github.com/repos/haiwen/seafile/issues/1184/comments","events_url":"https://api.github.com/repos/haiwen/seafile/issues/1184/events","html_url":"https://github.com/haiwen/seafile/issues/1184","id":69397556,"number":1184,"title":"Add loglevels and more log messages","user":{"login":"forouher","id":676900,"avatar_url":"https://avatars.githubusercontent.com/u/676900?v=3","gravatar_id":"","url":"https://api.github.com/users/forouher","html_url":"https://github.com/forouher","followers_url":"https://api.github.com/users/forouher/followers","following_url":"https://api.github.com/users/forouher/following{/other_user}","gists_url":"https://api.github.com/users/forouher/gists{/gist_id}","starred_url":"https://api.github.com/users/forouher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forouher/subscriptions","organizations_url":"https://api.github.com/users/forouher/orgs","repos_url":"https://api.github.com/users/forouher/repos","events_url":"https://api.github.com/users/forouher/events{/privacy}","received_events_url":"https://api.github.com/users/forouher/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/haiwen/seafile/labels/type-idea","name":"type-idea","color":"02e10c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-04-19T07:51:15Z","updated_at":"2016-10-26T07:48:22Z","closed_at":"2016-03-17T14:57:11Z","body":"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:\r\n\r\nccnet.log:\r\n\r\n[04/18/15 18:28:46] ../common/session.c(375): Accepted a local client\r\n[04/18/15 18:28:47] ../common/session.c(375): Accepted a local client\r\n[04/18/15 18:29:05] ../common/peer.c(943): Local peer down\r\n[04/18/15 18:29:05] ../common/processor.c(218): [Proc] Shutdown processor threaded-rpcserver-proc(-1001) for bad update: 515 peer down\r\n[04/18/15 18:29:06] ../common/session.c(375): Accepted a local client\r\n[04/18/15 18:29:07] ../common/peer.c(943): Local peer down\r\n\r\ncontroller.log:\r\n\r\n[04/10/15 11:18:04] seafile-controller.c(88): spawned seaf-server, pid 2953\r\n[04/10/15 11:18:04] seafile-controller.c(529): seafdav not enabled.\r\n[04/11/15 12:44:56] seafile-controller.c(154): starting ccnet-server ...\r\n[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\r\n[04/11/15 12:44:56] seafile-controller.c(88): spawned ccnet-server, pid 2960\r\n[04/11/15 12:44:57] seafile-controller.c(556): ccnet daemon connected.\r\n[04/11/15 12:44:57] seafile-controller.c(185): starting seaf-server ...\r\n\r\nseafile.log:\r\n\r\n[04/07/15 11:36:11] ../common/mq-mgr.c(60): [mq client] mq cilent is started\r\n[04/07/15 11:36:11] ../common/mq-mgr.c(106): [mq mgr] publish to hearbeat mq: seaf_server.heartbeat\r\n[04/07/15 11:36:11] listen-mgr.c(115): listen on port 12001 for block tranfer\r\n\r\nThese 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: \r\n\r\n- A user is created/deleted/logs in/out\r\n- A repository is created/deleted\r\n- blocks/commits/fs are created/removed\r\n- clients connected, with remote IP address\r\n- database handling\r\n- startup/shutdown\r\n- helpful error messages in case of errors\r\n- (many more things)\r\n\r\nSo I'd like to suggest:\r\n- to add loglevels: i.e. trace, debug, info, warn, error\r\n- to add a config switch to change the log level\r\n- to review the log messages and to sort them into above categories\r\n- to add more log messages. To give adminsitrators a feeling of what seafile is currently doing. And get clues if something goes wrong.\r\n"},"comment":{"url":"https://api.github.com/repos/haiwen/seafile/issues/comments/256274116","html_url":"https://github.com/haiwen/seafile/issues/1184#issuecomment-256274116","issue_url":"https://api.github.com/repos/haiwen/seafile/issues/1184","id":256274116,"user":{"login":"LeonardoGentile","id":412061,"avatar_url":"https://avatars.githubusercontent.com/u/412061?v=3","gravatar_id":"","url":"https://api.github.com/users/LeonardoGentile","html_url":"https://github.com/LeonardoGentile","followers_url":"https://api.github.com/users/LeonardoGentile/followers","following_url":"https://api.github.com/users/LeonardoGentile/following{/other_user}","gists_url":"https://api.github.com/users/LeonardoGentile/gists{/gist_id}","starred_url":"https://api.github.com/users/LeonardoGentile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeonardoGentile/subscriptions","organizations_url":"https://api.github.com/users/LeonardoGentile/orgs","repos_url":"https://api.github.com/users/LeonardoGentile/repos","events_url":"https://api.github.com/users/LeonardoGentile/events{/privacy}","received_events_url":"https://api.github.com/users/LeonardoGentile/received_events","type":"User","site_admin":false},"created_at":"2016-10-26T07:48:22Z","updated_at":"2016-10-26T07:48:22Z","body":"@shoeper the link is dead"}}
{"actor":{"display_login":"LeonardoGentile"}}