Skip to content

Commit eea1ea6

Browse files
authored
fix: Rename logger from gotrue to auth (#1055)
fix: rename logger from gotrue to auth
1 parent d1ecabd commit eea1ea6

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

packages/gotrue/lib/src/broadcast_web.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'dart:js_util' as js_util;
55
import 'package:gotrue/src/types/types.dart';
66
import 'package:logging/logging.dart';
77

8-
final _log = Logger('supabase.gotrue');
8+
final _log = Logger('supabase.auth');
99

1010
BroadcastChannel getBroadcastChannel(String broadcastKey) {
1111
final broadcast = html.BroadcastChannel(broadcastKey);

packages/gotrue/lib/src/gotrue_client.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class GoTrueClient {
8989

9090
final AuthFlowType _flowType;
9191

92-
final _log = Logger('supabase.gotrue');
92+
final _log = Logger('supabase.auth');
9393

9494
/// Proxy to the web BroadcastChannel API. Should be null on non-web platforms.
9595
BroadcastChannel? _broadcastChannel;

packages/supabase_flutter/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ final supabase = Supabase.instance.client;
5252
* [Edge Functions](#edge-functions)
5353
* [Deep Links](#deep-links)
5454
* [Custom LocalStorage](#custom-localstorage)
55+
- [Logging](#logging)
5556

5657

5758
### <a id="authentication"></a>[Authentication](https://supabase.com/docs/guides/auth)
@@ -621,7 +622,7 @@ supabaseLogger.onRecord.listen((record) {
621622
- `supabase_flutter`: `Logger('supabase.supabase_flutter')`
622623
- `supabase`: `Logger('supabase.supabase')`
623624
- `postgrest`: `Logger('supabase.postgrest')`
624-
- `gotrue`: `Logger('supabase.gotrue')`
625+
- `gotrue`: `Logger('supabase.auth')`
625626
- `realtime_client`: `Logger('supabase.realtime')`
626627
- `storage_client`: `Logger('supabase.storage')`
627628
- `functions_client`: `Logger('supabase.functions')`

0 commit comments

Comments
 (0)