diff options
author | Eric Bailey <git@esb.lol> | 2023-11-04 13:42:36 -0500 |
---|---|---|
committer | Eric Bailey <git@esb.lol> | 2023-11-04 13:42:36 -0500 |
commit | f51351e80d446fc058faf0ab91757ca4bdead0a5 (patch) | |
tree | 0c2372a71e605bfbb99b38113305b800ddd04064 /src/state/models/ui/create-account.ts | |
parent | e49a3d8a564b2aa42a8c0e66dfcbae27d096dc26 (diff) | |
download | voidsky-f51351e80d446fc058faf0ab91757ca4bdead0a5.tar.zst |
Replace all logs with new logger
Diffstat (limited to 'src/state/models/ui/create-account.ts')
-rw-r--r-- | src/state/models/ui/create-account.ts | 5 |
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 |