Skip to content

Commit

Permalink
fix: broken "formatMessage" call
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed Nov 1, 2023
1 parent c2ecab1 commit caebdda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
13 changes: 2 additions & 11 deletions src/core/handlers/GraphQLHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,18 +184,9 @@ Consider naming this operation or using "graphql.operation()" request handler to
`${getTimestamp()} ${requestInfo} (%c${loggedResponse.status} ${
loggedResponse.statusText
}%c)`,
`color:${statusColor}`,
'color:inherit',
),

// devUtils.formatMessage(
// '%s %s (%c%s%c)',
// getTimestamp(),
// `${requestInfo}`,
// `color:${statusColor}`,
// `${loggedResponse.status} ${loggedResponse.statusText}`,
// 'color:inherit',
// ),
`color:${statusColor}`,
'color:inherit',
)
console.log('Request:', loggedRequest)
console.log('Handler:', this)
Expand Down
12 changes: 2 additions & 10 deletions src/core/handlers/HttpHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,17 +157,9 @@ export class HttpHandler extends RequestHandler<
`${getTimestamp()} ${args.request.method} ${publicUrl} (%c${
loggedResponse.status
} ${loggedResponse.statusText}%c)`,
`color:${statusColor}`,
'color:inherit',
),

// '%s %s %s (%c%s%c)',
// getTimestamp(),
// args.request.method,
// publicUrl,
// `color:${statusColor}`,
// `${loggedResponse.status} ${loggedResponse.statusText}`,
// 'color:inherit',
`color:${statusColor}`,
'color:inherit',
)
console.log('Request', loggedRequest)
console.log('Handler:', this)
Expand Down

0 comments on commit caebdda

Please sign in to comment.