about summary refs log tree commit diff
path: root/src/state/models/ui/create-account.ts
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-11-04 14:00:38 -0500
committerGitHub <noreply@github.com>2023-11-04 14:00:38 -0500
commit95b5e642dcca7b6fbf60cb1b86a94ba9d40415e1 (patch)
tree704c8dc022b0536951e4cb49b0006991253c3903 /src/state/models/ui/create-account.ts
parente49a3d8a564b2aa42a8c0e66dfcbae27d096dc26 (diff)
parentf6fe980a6457bc7394427b569b2e5b05ce5278f6 (diff)
downloadvoidsky-95b5e642dcca7b6fbf60cb1b86a94ba9d40415e1.tar.zst
Merge pull request #1814 from bluesky-social/eric/replace-logger
Remove old logger
Diffstat (limited to 'src/state/models/ui/create-account.ts')
-rw-r--r--src/state/models/ui/create-account.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/state/models/ui/create-account.ts b/src/state/models/ui/create-account.ts
index 3bd39ba76..1711b530f 100644
--- a/src/state/models/ui/create-account.ts
+++ b/src/state/models/ui/create-account.ts
@@ -8,6 +8,7 @@ import {createFullHandle} from 'lib/strings/handles'
 import {cleanError} from 'lib/strings/errors'
 import {getAge} from 'lib/strings/time'
 import {track} from 'lib/analytics/analytics'
+import {logger} from '#/logger'
 
 const DEFAULT_DATE = new Date(Date.now() - 60e3 * 60 * 24 * 365 * 20) // default to 20 years ago
 
@@ -76,7 +77,7 @@ export class CreateAccountModel {
       this.setServiceDescription(desc)
       this.setUserDomain(desc.availableUserDomains[0])
     } catch (err: any) {
-      this.rootStore.log.warn(
+      logger.warn(
         `Failed to fetch service description for ${this.serviceUrl}`,
         {error: err},
       )
@@ -127,7 +128,7 @@ export class CreateAccountModel {
         errMsg =
           'Invite code not accepted. Check that you input it correctly and try again.'
       }
-      this.rootStore.log.error('Failed to create account', {error: e})
+      logger.error('Failed to create account', {error: e})
       this.setIsProcessing(false)
       this.setError(cleanError(errMsg))
       throw e