Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Rename logger from gotrue to auth #1055

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading