MCPcopy
hub / github.com/jackc/pgx / shouldLog

Method shouldLog

tracelog/tracelog.go:391–393  ·  view source on GitHub ↗
(lvl LogLevel)

Source from the content-addressed store, hash-verified

389}
390
391func (tl *TraceLog) shouldLog(lvl LogLevel) bool {
392 return tl.LogLevel >= lvl
393}
394
395func (tl *TraceLog) log(ctx context.Context, conn *pgx.Conn, lvl LogLevel, msg string, data map[string]any) {
396 if data == nil {

Callers 8

TraceQueryEndMethod · 0.95
TraceBatchQueryMethod · 0.95
TraceBatchEndMethod · 0.95
TraceCopyFromEndMethod · 0.95
TraceConnectEndMethod · 0.95
TracePrepareEndMethod · 0.95
TraceAcquireEndMethod · 0.95
TraceReleaseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected