git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Verbose git-daemon logging

From
Linus Torvalds <torvalds@osdl.org>
Date
Sep 22, 2005, 23:58 UTC
Message-ID
<Pine.LNX.4.58.0509221651000.2553@g5.osdl.org>
In-Reply-To
<7vd5n0lle8.fsf@assigned-by-dhcp.cox.net>
On Thu, 22 Sep 2005, Junio C Hamano wrote:
> 
> The tail part still looks odd here.  Maybe something like this?

And if you actually want it to be more reliable, don't use fputs. That can still split lines, and even if it doesn't, it doesn't help.

> +	buf[buflen++] = '\n';
> +	buf[buflen] = '\0';
> +
> +	fputs(buf, stderr);
Why use "fputs()", when you migth as well do write()?
Also, it would probably be nice if you allow the use of syslog().. 
		Linus
Previous: Junio C HamanoNext: Morten Welinder
Message 5 of 6 in “Verbose git-daemon logging”
  1. Verbose git-daemon loggingPetr Baudis, Sep 21, 2005
  2. Junio C HamanoSep 22, 2005
  3. Petr BaudisSep 22, 2005
  4. Junio C HamanoSep 22, 2005
  5. Linus TorvaldsSep 22, 2005
  6. Morten WelinderSep 23, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.