Skip to content

Commit 9d55973

Browse files
authored
fix: don't log ignored error when requiring custom publisher (#8267)
1 parent 3b99eb3 commit 9d55973

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/spotty-timers-shave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"app-builder-lib": patch
3+
---
4+
5+
fix: don't log ignored error when requiring custom publisher

packages/app-builder-lib/src/publish/PublishManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ function requireProviderClass(provider: string, packager: Packager): any | null
346346
try {
347347
module = require(path.join(packager.buildResourcesDir, name + ".js"))
348348
} catch (ignored) {
349-
console.log(ignored)
349+
log.debug({ path: path.join(packager.buildResourcesDir, name + ".js") }, "Unable to find publish provider in build resources")
350350
}
351351

352352
if (module == null) {

0 commit comments

Comments
 (0)