[PATCH v2 0/6] util: log infor to help troubleshoot file/socket open failures

Laine Stump via Devel posted 6 patches 1 week ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20260408041038.424650-1-laine@redhat.com
src/util/virlog.c | 226 ++++++++++++++++++++++++++++++----------------
src/util/virlog.h |   4 +-
tests/testutils.c |   2 +-
3 files changed, 150 insertions(+), 82 deletions(-)
[PATCH v2 0/6] util: log infor to help troubleshoot file/socket open failures
Posted by Laine Stump via Devel 1 week ago
The first couple patches are just related cleanups I noticed while
doing the others, then a couple patches to simplify adding more lines
to the bannder printed at the top of the log, and then finally the
last couple patches add some info to the banner at the top of the log
that would be generally useful when trying to understand why some
random file or socket failed to be created or opened.

V2: I've fixed a few nits Peter found, and modified the format and
contents of the banner based on suggestions from Peter and Daniel

Laine Stump (6):
  util: log the name of the log directory that couldn't be created
  util: consistently use typedef virLogMetadata
  util: eliminate duplicate code in virLogVMessage
  util: make it easier to add lines to the log "init banner"
  util: add info to log banner about uid and user environment
  util: add info about g_get_user_*_dir directories to log banner

 src/util/virlog.c | 226 ++++++++++++++++++++++++++++++----------------
 src/util/virlog.h |   4 +-
 tests/testutils.c |   2 +-
 3 files changed, 150 insertions(+), 82 deletions(-)

-- 
2.53.0