Skip to content

Commit

Permalink
Change error logs to debug (#297)
Browse files Browse the repository at this point in the history
change error log to debug
  • Loading branch information
IvanTopolcic authored Nov 8, 2022
1 parent 38453fd commit 6a12c46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/trace/trigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
EventBridgeEvent,
} from "aws-lambda";
import * as eventType from "../utils/event-type-guards";
import { logError } from "../utils";
import { logDebug } from "../utils";
import { gunzipSync } from "zlib";

type LambdaURLEvent = {
Expand Down Expand Up @@ -303,7 +303,7 @@ export function extractTriggerTags(event: any, context: Context) {
try {
eventSourceARN = parseEventSourceARN(eventSource, event, context);
} catch (error) {
logError(`failed to extract ${eventSource} arn from the event`, { error });
logDebug(`failed to extract ${eventSource} arn from the event`, { error });
}
if (eventSourceARN) {
triggerTags["function_trigger.event_source_arn"] = eventSourceARN;
Expand All @@ -314,7 +314,7 @@ export function extractTriggerTags(event: any, context: Context) {
try {
triggerTags = { ...triggerTags, ...extractHTTPTags(event) };
} catch (error) {
logError(`failed to extract http tags from ${eventSource} event`);
logDebug(`failed to extract http tags from ${eventSource} event`);
}
}
return triggerTags;
Expand Down

0 comments on commit 6a12c46

Please sign in to comment.