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

Re: [RFC PATCH] usage: add trace2 entry upon warning()

From
JHJeff Hostetler <git@jeffhostetler.com>
Date
Nov 30, 2020, 16:16 UTC
Message-ID
<8b4d2300-5c55-fab5-af39-4c5921a6ea9a@jeffhostetler.com>
In-Reply-To
<20201123190412.101265-1-jonathantanmy@google.com>
On 11/23/20 2:04 PM, Jonathan Tan wrote:
Show 18 quoted lines
> Emit a trace2 error event whenever warning() is called, just like when
> die(), error(), or usage() is called.
> 
> This helps debugging issues that would trigger warnings but not errors.
> In particular, this might have helped debugging an issue I encountered
> with commit graphs at $DAYJOB [1].
> 
> There is a tradeoff between including potentially relevant messages and
> cluttering up the trace output produced. I think that warning() messages
> should be included in traces, because by its nature, Git is used over
> multiple invocations of the Git tool, and a failure (currently traced)
> in a Git invocation might be caused by an unexpected interaction in a
> previous Git invocation that only has a warning (currently untraced) as
> a symptom - as is the case in [1].
> 
> [1] https://lore.kernel.org/git/20200629220744.1054093-1-jonathantanmy@google.com/
> 
> Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
LGTM

Thanks, Jeff

Previous: Junio C Hamano
Message 6 of 6 in “usage: add trace2 entry upon warning()”
  1. usage: add trace2 entry upon warning()Jonathan Tan, Nov 23, 2020
  2. usage: add trace2 entry upon warning()Jonathan Tan, Nov 23, 2020
  3. Junio C HamanoNov 23, 2020
  4. usage: add trace2 entry upon warning()Jonathan Tan, Nov 24, 2020
  5. Junio C HamanoNov 24, 2020
  6. Jeff HostetlerNov 30, 2020

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.