I think INFO should be used sparingly to inform users of important and rare events. Currently I cannot even resize my window without four log lines for each resize event:
2022-11-11T13:18:11.813326Z INFO wgpu_core::device: configuring surface with SurfaceConfiguration { usage: RENDER_ATTACHMENT, format: Bgra8Unorm, width: 1889, height: 2135, present_mode: AutoVsync, alpha_mode: Auto }
2022-11-11T13:18:11.813387Z INFO wgpu_core::device: Automatically choosing presentation mode by rule AutoVsync. Chose Fifo
2022-11-11T13:18:11.813391Z INFO wgpu_core::device: Automatically choosing alpha mode by rule Auto. Chose Opaque
2022-11-11T13:18:11.813397Z INFO wgpu_hal::metal::surface: build swapchain SurfaceConfiguration { swap_chain_size: 3, present_mode: Fifo, composite_alpha_mode: Opaque, format: Bgra8Unorm, extent: Extent3d { width: 1889, height: 2135, depth_or_array_layers: 1 }, usage: COLOR_TARGET }
This is not interesting to me. This should be at the TRACE or DEBUG level imho.
Description
While @emilk was investigating a (separate) crashing issue with
wgpu, they reported thatwgpu-halandwgpu-core's logging at theINFOlevel were so verbose as to hinder debugging.Repro steps
See this comment.
Expected vs observed behavior
In @emilk's words:
Out of the box, we'd like
INFO-level and higher severities of logging to have a high ratio of useful information.Extra materials
-
Platform
-
Remaining action items
@cwfitzgerald's opinion(s): 1 (consensus from @kvark)
@kpreid's opinion(s): 1
@emilk's opinion(s): 1
@ErichDonGubler's opinion(s): 1
Current apparent consensus, with open questions noted in bold:
wgpu, but should still be resolved. An “unrecoverable” issue requires end-user or developer intervention to resolve.wgpu's usage. Low severity ("less severe") may result in degraded performance or scope of functionality, but is not likely to threaten overall usage.ERRORErrors to user code.WARNINFOwgpuoperations. Currently unclear whether there are any non-problematic per-frame events that are acceptable to report here.DEBUGwgpu's inner workings. Intended only to contextualize other logs or span elements.TRACEwgpuitself is being scrutinized heavily for bugs.DEBUGlevel.DEBUGor lower, in general.