]> git.ipfire.org Git - thirdparty/git.git/commit - daemon.c
[PATCH] Verbose git-daemon logging
authorPetr Baudis <pasky@suse.cz>
Thu, 22 Sep 2005 09:25:28 +0000 (11:25 +0200)
committerJunio C Hamano <junkio@cox.net>
Fri, 23 Sep 2005 01:00:28 +0000 (18:00 -0700)
commitf8ff0c0641a14770a2214fffbd4271b1ea3a0d61
treeedeaf7532d3ea43dae0c3690fc165162f7a29be4
parent5cfcd07c931e6029a77f9393309f7d0ec7cdc118
[PATCH] Verbose git-daemon logging

This patch makes git-daemon --verbose log some useful things on stderr -
in particular connects, disconnects and upload requests, and in such a
way to be able to trace a particular session. Some more errors are now
also logged (even when --verbose is not passed). It is still not perfect
since messages produced by the non-daemon-specific code are obviously
not formatted properly.

[jc: With minor fix up in the log line truncation, and
 use of write(2) as suggested by Linus.]

Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
daemon.c