MCPcopy
hub / github.com/chavyleung/scripts / debug

Method debug

Env.js:812–821  ·  view source on GitHub ↗
(...logs)

Source from the content-addressed store, hash-verified

810 }
811
812 debug(...logs) {
813 if (this.logLevels[this.logLevel] <= this.logLevels.debug) {
814 if (logs.length > 0) {
815 this.logs = [...this.logs, ...logs]
816 }
817 console.log(
818 `${this.logLevelPrefixs.debug}${logs.map((l) => l ?? String(l)).join(this.logSeparator)}`
819 )
820 }
821 }
822
823 info(...logs) {
824 if (this.logLevels[this.logLevel] <= this.logLevels.info) {

Callers

nothing calls this directly

Calls 1

logMethod · 0.45

Tested by

no test coverage detected