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

Method error

Env.js:845–854  ·  view source on GitHub ↗
(...logs)

Source from the content-addressed store, hash-verified

843 }
844
845 error(...logs) {
846 if (this.logLevels[this.logLevel] <= this.logLevels.error) {
847 if (logs.length > 0) {
848 this.logs = [...this.logs, ...logs]
849 }
850 console.log(
851 `${this.logLevelPrefixs.error}${logs.map((l) => l ?? String(l)).join(this.logSeparator)}`
852 )
853 }
854 }
855
856 log(...logs) {
857 if (logs.length > 0) {

Callers

nothing calls this directly

Calls 1

logMethod · 0.45

Tested by

no test coverage detected