Skip to content

Commit

Permalink
log fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benbot committed Oct 31, 2023
1 parent 0c1d60f commit 1d9baed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@
"tailwindcss-animate": "^1.0.7",
"tesseract.js": "4.0.6",
"three": "^0.154.0",
"ts-node": "10.9.1",
"tslib": "^2.3.0",
"twitter-api-v2": "1.14.3",
"typechat": "^0.0.10",
Expand Down
7 changes: 3 additions & 4 deletions packages/core/shared/src/nodes/io/Output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ const defaultOutputTypes = [
},
]

const logger = getLogger();

/**
* Output component
*/
export class Output extends MagickComponent<void> {

/**
* Constructor for Output component
*/
Expand All @@ -52,7 +52,6 @@ export class Output extends MagickComponent<void> {
)

this.common = true

this.module = {
nodeType: 'output',
socket: anySocket,
Expand Down Expand Up @@ -165,9 +164,9 @@ export class Output extends MagickComponent<void> {
const t = agent.outputTypes.find(t => t.name === outputType)
// Find outputType in outputTypes where name is outputType
if (!t) {
logger.error({ outputType, finalType: t }, 'Output type is not defined')
this.logger.error({ outputType, finalType: t }, 'Output type is not defined')
} else if (!t.handler) {
logger.error({ outputType, finalType: t }, 'Output type is not defined')
this.logger.error({ outputType, finalType: t }, 'Output type is not defined')
} else {
t.handler({
output,
Expand Down

0 comments on commit 1d9baed

Please sign in to comment.