fix: child loggers

This commit is contained in:
Alexis Tyler
2021-04-05 16:16:15 +09:30
parent 6930b3444a
commit db5aaf0c2e
+1 -1
View File
@@ -24,7 +24,7 @@ const noop = () => {};
* being hit.
*/
export const logger = {
createChild: (_options: { prefix: string }) => log,
createChild: (_options: { prefix: string }) => logger,
debug: isProduction ? noop : console.debug,
// Always allow errors to log
error: console.error,