feat(vfs): add process ID to VFS log output

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Ben Johnson
2026-01-21 14:57:42 -07:00
parent fd72a6b820
commit f7372acdca

View File

@@ -74,7 +74,7 @@ func LitestreamVFSRegister() *C.char {
}
logOutput = f
}
logger := slog.New(slog.NewTextHandler(logOutput, &slog.HandlerOptions{Level: level}))
logger := slog.New(slog.NewTextHandler(logOutput, &slog.HandlerOptions{Level: level})).With("pid", os.Getpid())
vfs := litestream.NewVFS(client, logger)