MCPcopy Index your code
hub / github.com/electric-sql/pglite / log

Method log

packages/pglite-socket/src/index.ts:65–69  ·  view source on GitHub ↗

* Log a message if debug is enabled * @private

(message: string, ...args: any[])

Source from the content-addressed store, hash-verified

63 * @private
64 */
65 private log(message: string, ...args: any[]): void {
66 if (this.debug) {
67 console.log(`[PGLiteSocketHandler#${this.id}] ${message}`, ...args)
68 }
69 }
70
71 /**
72 * Attach a socket to this handler

Callers 6

constructorMethod · 0.95
attachMethod · 0.95
detachMethod · 0.95
handleDataMethod · 0.95
handleErrorMethod · 0.95
handleCloseMethod · 0.95

Calls 1

logMethod · 0.45

Tested by

no test coverage detected