@saihu/common 1.1.24 → 1.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"saihu-logger.service.d.ts","sourceRoot":"","sources":["../../src/logger/saihu-logger.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,qBAAa,WAAY,YAAW,aAAa;IAC/C,GAAG,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM;IAgBlC,KAAK,CAAC,OAAO,EAAE,GAAG,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"saihu-logger.service.d.ts","sourceRoot":"","sources":["../../src/logger/saihu-logger.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,qBAAa,WAAY,YAAW,aAAa;IAC/C,GAAG,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM;IAgBlC,KAAK,CAAC,OAAO,EAAE,GAAG,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;IAgBpD,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM;IAgBnC,KAAK;IACL,OAAO;CACR"}
|
|
@@ -29,9 +29,55 @@ class SaihuLogger {
|
|
|
29
29
|
console.log(`[${context}]`, message);
|
|
30
30
|
}
|
|
31
31
|
error(message, trace, context) {
|
|
32
|
+
// Hide Nest internal errors
|
|
33
|
+
if (context === null || context === void 0 ? void 0 : context.includes('InstanceLoader'))
|
|
34
|
+
return;
|
|
35
|
+
if (context === null || context === void 0 ? void 0 : context.includes('RoutesResolver'))
|
|
36
|
+
return;
|
|
37
|
+
if (context === null || context === void 0 ? void 0 : context.includes('RouterExplorer'))
|
|
38
|
+
return;
|
|
39
|
+
if (context === null || context === void 0 ? void 0 : context.includes('NestFactory'))
|
|
40
|
+
return;
|
|
41
|
+
if (context === null || context === void 0 ? void 0 : context.includes('NestApplication'))
|
|
42
|
+
return;
|
|
43
|
+
if (context === null || context === void 0 ? void 0 : context.includes('ClientProxy'))
|
|
44
|
+
return;
|
|
45
|
+
if (context === null || context === void 0 ? void 0 : context.includes('NestMicroservice'))
|
|
46
|
+
return;
|
|
47
|
+
if (context === null || context === void 0 ? void 0 : context.includes('AmqpConnection'))
|
|
48
|
+
return;
|
|
49
|
+
if (context === null || context === void 0 ? void 0 : context.includes('MicroserviceConfiguration'))
|
|
50
|
+
return;
|
|
51
|
+
if (context === null || context === void 0 ? void 0 : context.includes('RabbitMQModule'))
|
|
52
|
+
return;
|
|
53
|
+
if (context === null || context === void 0 ? void 0 : context.includes('WebSocketsController'))
|
|
54
|
+
return;
|
|
32
55
|
console.error(`[${context}]`, message, trace);
|
|
33
56
|
}
|
|
34
57
|
warn(message, context) {
|
|
58
|
+
// Hide Nest internal warnings
|
|
59
|
+
if (context === null || context === void 0 ? void 0 : context.includes('InstanceLoader'))
|
|
60
|
+
return;
|
|
61
|
+
if (context === null || context === void 0 ? void 0 : context.includes('RoutesResolver'))
|
|
62
|
+
return;
|
|
63
|
+
if (context === null || context === void 0 ? void 0 : context.includes('RouterExplorer'))
|
|
64
|
+
return;
|
|
65
|
+
if (context === null || context === void 0 ? void 0 : context.includes('NestFactory'))
|
|
66
|
+
return;
|
|
67
|
+
if (context === null || context === void 0 ? void 0 : context.includes('NestApplication'))
|
|
68
|
+
return;
|
|
69
|
+
if (context === null || context === void 0 ? void 0 : context.includes('ClientProxy'))
|
|
70
|
+
return;
|
|
71
|
+
if (context === null || context === void 0 ? void 0 : context.includes('NestMicroservice'))
|
|
72
|
+
return;
|
|
73
|
+
if (context === null || context === void 0 ? void 0 : context.includes('AmqpConnection'))
|
|
74
|
+
return;
|
|
75
|
+
if (context === null || context === void 0 ? void 0 : context.includes('MicroserviceConfiguration'))
|
|
76
|
+
return;
|
|
77
|
+
if (context === null || context === void 0 ? void 0 : context.includes('RabbitMQModule'))
|
|
78
|
+
return;
|
|
79
|
+
if (context === null || context === void 0 ? void 0 : context.includes('WebSocketsController'))
|
|
80
|
+
return;
|
|
35
81
|
console.warn(`[${context}]`, message);
|
|
36
82
|
}
|
|
37
83
|
debug() { }
|