@adaptivestone/framework 5.0.0-alpha.19 → 5.0.0-alpha.20
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.
- package/CHANGELOG.md +5 -0
- package/modules/Base.js +11 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/modules/Base.js
CHANGED
|
@@ -18,7 +18,17 @@ class Base {
|
|
|
18
18
|
* Optimzation to lazy load logger. It will be inited only on request
|
|
19
19
|
*/
|
|
20
20
|
get logger() {
|
|
21
|
-
|
|
21
|
+
let l;
|
|
22
|
+
try {
|
|
23
|
+
l = this.#realLogger;
|
|
24
|
+
} catch (e) {
|
|
25
|
+
console.warn(
|
|
26
|
+
`You try to accees logger not from class. that can be ok in case of models.`,
|
|
27
|
+
);
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (!l) {
|
|
22
32
|
this.#realLogger = this.getLogger(
|
|
23
33
|
this.constructor.loggerGroup + this.getConstructorName(),
|
|
24
34
|
);
|