Skip to content

Commit

Permalink
more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Feb 1, 2025
1 parent e80b595 commit 9117114
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/core/pluginLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ export async function loadPlugins(pluginNames, options, context, queue) {
let p = new plugin(options, context, queue);
plugins.push(p);
} catch (error_) {
console.log('In plugins dir:' + name);
console.log(error_);
try {
let { default: plugin } = await import(
path.resolve(process.cwd(), name)
Expand All @@ -84,6 +86,7 @@ export async function loadPlugins(pluginNames, options, context, queue) {
} catch (error) {
// try global
console.log('Import global silent plugin:' + name);
console.log(error);
let { default: plugin } = await importGlobalSilent(name);
if (plugin) {
let p = new plugin(options, context, queue);
Expand Down

0 comments on commit 9117114

Please sign in to comment.