Skip to content

Commit

Permalink
Also log event name in case of validation error in Tracks event creat…
Browse files Browse the repository at this point in the history
…ion.
  • Loading branch information
jaclync committed Aug 30, 2023
1 parent 7dd7d5d commit bce4ea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Event Logging/TracksEventService.m
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ - (TracksEvent *)createTracksEventWithName:(NSString *)name
NSError *error;
BOOL isValid = [tracksEvent validateObject:&error];
if (!isValid) {
TracksLogWarn(@"Error when validating TracksEvent: %@", error);
TracksLogWarn(@"Error when validating TracksEvent %@: %@", name, error);
return nil;
}

Expand Down

0 comments on commit bce4ea9

Please sign in to comment.