mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
chore: add trace log
This commit is contained in:
parent
9ca80c483a
commit
04e7627935
@ -181,6 +181,7 @@ export abstract class Plugin<O = any> implements PluginInterface {
|
||||
|
||||
private async getPluginBasePath() {
|
||||
if (!this.options.packageName) {
|
||||
this.app.log.trace(`plugin '${this.name}' is missing packageName`);
|
||||
return;
|
||||
}
|
||||
return getPluginBasePath(this.options.packageName);
|
||||
@ -196,6 +197,7 @@ export abstract class Plugin<O = any> implements PluginInterface {
|
||||
}
|
||||
const directory = resolve(basePath, 'server/collections');
|
||||
if (await fsExists(directory)) {
|
||||
this.app.log.trace(`load plugin collections [${this.name}]`);
|
||||
await this.db.import({
|
||||
directory,
|
||||
from: this.options.packageName,
|
||||
|
Loading…
x
Reference in New Issue
Block a user