From fc323dfd1ce12bd4a7b72790b1a03f83175d2983 Mon Sep 17 00:00:00 2001 From: Vinzent Date: Sat, 5 Oct 2024 22:40:12 +0200 Subject: [PATCH] fix: rename logger from gotrue to auth --- packages/gotrue/lib/src/broadcast_web.dart | 2 +- packages/gotrue/lib/src/gotrue_client.dart | 2 +- packages/supabase_flutter/README.md | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/gotrue/lib/src/broadcast_web.dart b/packages/gotrue/lib/src/broadcast_web.dart index d53be14b..0c2c2a53 100644 --- a/packages/gotrue/lib/src/broadcast_web.dart +++ b/packages/gotrue/lib/src/broadcast_web.dart @@ -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); diff --git a/packages/gotrue/lib/src/gotrue_client.dart b/packages/gotrue/lib/src/gotrue_client.dart index ba5a0afb..e46afecc 100644 --- a/packages/gotrue/lib/src/gotrue_client.dart +++ b/packages/gotrue/lib/src/gotrue_client.dart @@ -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; diff --git a/packages/supabase_flutter/README.md b/packages/supabase_flutter/README.md index 66ea479d..6b3d19ae 100644 --- a/packages/supabase_flutter/README.md +++ b/packages/supabase_flutter/README.md @@ -52,6 +52,7 @@ final supabase = Supabase.instance.client; * [Edge Functions](#edge-functions) * [Deep Links](#deep-links) * [Custom LocalStorage](#custom-localstorage) +- [Logging](#logging) ### [Authentication](https://supabase.com/docs/guides/auth) @@ -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')`