MCPcopy Index your code
hub / github.com/chavyleung/scripts / warn

Method warn

Env.js:834–843  ·  view source on GitHub ↗
(...logs)

Source from the content-addressed store, hash-verified

832 }
833
834 warn(...logs) {
835 if (this.logLevels[this.logLevel] <= this.logLevels.warn) {
836 if (logs.length > 0) {
837 this.logs = [...this.logs, ...logs]
838 }
839 console.log(
840 `${this.logLevelPrefixs.warn}${logs.map((l) => l ?? String(l)).join(this.logSeparator)}`
841 )
842 }
843 }
844
845 error(...logs) {
846 if (this.logLevels[this.logLevel] <= this.logLevels.error) {

Callers

nothing calls this directly

Calls 1

logMethod · 0.45

Tested by

no test coverage detected