mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-08 06:59:26 +08:00
chore: add trace log
This commit is contained in:
parent
06e5c49d89
commit
3dee4c8668
@ -338,13 +338,15 @@ export class PluginManager {
|
|||||||
options['version'] = packageJson.version;
|
options['version'] = packageJson.version;
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
this.app.log.error(error);
|
||||||
console.error(error);
|
console.error(error);
|
||||||
// empty
|
// empty
|
||||||
}
|
}
|
||||||
this.app.log.trace(`add plugin [${options.name}]`, {
|
this.app.log.trace(`adding plugin [${options.name}]`, {
|
||||||
method: 'add',
|
method: 'add',
|
||||||
submodule: 'plugin-manager',
|
submodule: 'plugin-manager',
|
||||||
name: options.name,
|
name: options.name,
|
||||||
|
options,
|
||||||
});
|
});
|
||||||
let P: any;
|
let P: any;
|
||||||
try {
|
try {
|
||||||
@ -364,6 +366,12 @@ export class PluginManager {
|
|||||||
this.pluginAliases.set(options.packageName, instance);
|
this.pluginAliases.set(options.packageName, instance);
|
||||||
}
|
}
|
||||||
await instance.afterAdd();
|
await instance.afterAdd();
|
||||||
|
this.app.log.trace(`added plugin [${options.name}]`, {
|
||||||
|
method: 'add',
|
||||||
|
submodule: 'plugin-manager',
|
||||||
|
name: instance.name,
|
||||||
|
options: instance.options,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user