x1ongzhu hace 1 año
padre
commit
f0d18638c1
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      src/filters/all-exceptions-filter.filter.ts

+ 5 - 1
src/filters/all-exceptions-filter.filter.ts

@@ -25,7 +25,11 @@ export class AllExceptionsFilter implements ExceptionFilter {
                 res.message = res.message.join()
             }
         }
-        Logger.error(`status=${httpStatus}, path=${path}, msg=${res.message}`, 'GlobalExceptionFilter')
+        Logger.error(
+            `status=${httpStatus}, path=${path}, msg=${res.message}`,
+            (exception as any).stack,
+            'GlobalExceptionFilter'
+        )
         if (!(exception instanceof HttpException)) {
             console.trace(exception)
         }