Skip to content

Commit

Permalink
feat(observe): use trace log with error
Browse files Browse the repository at this point in the history
Signed-off-by: Milan Gallas <[email protected]>
  • Loading branch information
Milan Gallas authored and Milan Gallas committed Jan 9, 2025
1 parent ba2ef08 commit 5cbc1bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/observe/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export async function processApiProxyResponse<T, O, M extends MediaType>(

if (error) {
if (response.status === StatusCodes.NOT_FOUND) {
getTraceLogger().debug('The trace does not exist in the Observe yet');
getTraceLogger().trace({ err: error }, 'The trace does not exist in the Observe yet');
} else {
getTraceLogger().error({ err: error }, 'Observe API: Invalid response');
}
Expand Down

0 comments on commit 5cbc1bb

Please sign in to comment.