We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 581860d commit 67c3863Copy full SHA for 67c3863
packages/logger/src/logger.ts
@@ -195,13 +195,12 @@ export function setLogLevel(level: LogLevelString | LogLevel): void {
195
export function setUserLogHandler(
196
logCallback: LogCallback | null,
197
options: LogOptions
198
-) {
+): void {
199
if (typeof logCallback !== 'function') {
200
console.warn('First argument to `onLog` must be a function.');
201
return;
202
}
203
- for (const index in instances) {
204
- const instance = instances[index];
+ for (const instance of instances) {
205
let threshhold = instance.logLevel;
206
if (options && options.level) {
207
threshhold = levelStringToEnum[options.level];
0 commit comments