Skip to content

Commit a37b071

Browse files
Add debug logging for schemas without messageType
1 parent cc8c370 commit a37b071

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ipc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class IpcSocket {
5555
if (validate) {
5656
this.validators[schema.properties.messageType.const] = validate;
5757
}
58-
} else {
58+
} else if (process.env.DEBUG) {
5959
console.debug(`Ignoring ${schema.$id} because it has no messageType`);
6060
}
6161
}

0 commit comments

Comments
 (0)