Skip to content

Commit

Permalink
chore: moved user agent to logging category api
Browse files Browse the repository at this point in the history
  • Loading branch information
khatruong2009 committed Nov 13, 2023
1 parent 88c232f commit 94e7452
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ class LoggingCategory extends AmplifyCategory<LoggingPluginInterface> {
/// Sends recorded logs to the output and remove them from the local storage.
/// {@endtemplate}
void flushLogs() {
return defaultPlugin.flushLogs();
return identifyCall(LoggingCategoryMethod.flush, () => defaultPlugin.flushLogs());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -389,10 +389,7 @@ class CloudWatchLoggerPlugin extends AWSLoggerPlugin

/// Sends logs on-demand to CloudWatch.
Future<void> flushLogs() async {
await identifyCall(
LoggingCategoryMethod.flush,
_startSyncingIfNotInProgress,
);
await _startSyncingIfNotInProgress();
}

@override
Expand Down

0 comments on commit 94e7452

Please sign in to comment.