diff --git a/src/helpers/with-logged-method-calls.ts b/src/helpers/with-logged-method-calls.ts index d7e086a..d5b75f8 100644 --- a/src/helpers/with-logged-method-calls.ts +++ b/src/helpers/with-logged-method-calls.ts @@ -11,7 +11,11 @@ export function withLoggedMethodCalls(value: T) { return (...values: any[]) => { console.info( `${String(property)}(${values - .map((value) => inspect(value, { depth: 1 })) + .map((value) => + typeof value === "object" && value !== null + ? value.constructor.name + : inspect(value, { colors: true }), + ) .join(", ")})`, ) return value.apply(target, values)