MCPcopy Create free account
hub / github.com/algolia/algoliasearch-client-javascript / warn

Function warn

packages/logger-console/src/logger.ts:22–33  ·  view source on GitHub ↗
(message: string, args?: any | undefined)

Source from the content-addressed store, hash-verified

20 },
21
22 warn(message: string, args?: any | undefined): Readonly<Promise<void>> {
23 if (LogLevelEnum.Info >= logLevel) {
24 // single-arg calls (e.g. via `logWarning`) must not print a trailing `undefined`
25 if (args === undefined) {
26 console.warn(message);
27 } else {
28 console.warn(message, args);
29 }
30 }
31
32 return Promise.resolve();
33 },
34
35 error(message: string, args?: any | undefined): Readonly<Promise<void>> {
36 console.error(message, args);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected