MCPcopy
hub / github.com/Doorman11991/smallcode / debug

Method debug

src/compiled/logger.js:39–43  ·  view source on GitHub ↗
(event, fields = {})

Source from the content-addressed store, hash-verified

37 this.emit({ level: "error", event, status: "failure", trace_id: fields.trace_id || "", ...fields });
38 }
39 debug(event, fields = {}) {
40 if (process.env.LOG_LEVEL === "debug") {
41 this.emit({ level: "debug", event, status: "success", trace_id: fields.trace_id || "", ...fields });
42 }
43 }
44}
45function createLogger(service) {
46 return new Logger(service);

Callers

nothing calls this directly

Calls 1

emitMethod · 0.95

Tested by

no test coverage detected