Skip to content

Commit

Permalink
fix: Rename logger from gotrue to auth (#1055)
Browse files Browse the repository at this point in the history
fix: rename logger from gotrue to auth
  • Loading branch information
Vinzent03 authored Oct 7, 2024
1 parent d1ecabd commit eea1ea6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/gotrue/lib/src/broadcast_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'dart:js_util' as js_util;
import 'package:gotrue/src/types/types.dart';
import 'package:logging/logging.dart';

final _log = Logger('supabase.gotrue');
final _log = Logger('supabase.auth');

BroadcastChannel getBroadcastChannel(String broadcastKey) {
final broadcast = html.BroadcastChannel(broadcastKey);
Expand Down
2 changes: 1 addition & 1 deletion packages/gotrue/lib/src/gotrue_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class GoTrueClient {

final AuthFlowType _flowType;

final _log = Logger('supabase.gotrue');
final _log = Logger('supabase.auth');

/// Proxy to the web BroadcastChannel API. Should be null on non-web platforms.
BroadcastChannel? _broadcastChannel;
Expand Down
3 changes: 2 additions & 1 deletion packages/supabase_flutter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ final supabase = Supabase.instance.client;
* [Edge Functions](#edge-functions)
* [Deep Links](#deep-links)
* [Custom LocalStorage](#custom-localstorage)
- [Logging](#logging)


### <a id="authentication"></a>[Authentication](https://supabase.com/docs/guides/auth)
Expand Down Expand Up @@ -621,7 +622,7 @@ supabaseLogger.onRecord.listen((record) {
- `supabase_flutter`: `Logger('supabase.supabase_flutter')`
- `supabase`: `Logger('supabase.supabase')`
- `postgrest`: `Logger('supabase.postgrest')`
- `gotrue`: `Logger('supabase.gotrue')`
- `gotrue`: `Logger('supabase.auth')`
- `realtime_client`: `Logger('supabase.realtime')`
- `storage_client`: `Logger('supabase.storage')`
- `functions_client`: `Logger('supabase.functions')`
Expand Down

0 comments on commit eea1ea6

Please sign in to comment.