diff options
Diffstat (limited to 'client/src/app/core/users/user-local-storage.service.ts')
-rw-r--r-- | client/src/app/core/users/user-local-storage.service.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/client/src/app/core/users/user-local-storage.service.ts b/client/src/app/core/users/user-local-storage.service.ts index d15bf735b..fff649eef 100644 --- a/client/src/app/core/users/user-local-storage.service.ts +++ b/client/src/app/core/users/user-local-storage.service.ts | |||
@@ -2,8 +2,9 @@ | |||
2 | import { filter, throttleTime } from 'rxjs' | 2 | import { filter, throttleTime } from 'rxjs' |
3 | import { Injectable } from '@angular/core' | 3 | import { Injectable } from '@angular/core' |
4 | import { AuthService, AuthStatus } from '@app/core/auth' | 4 | import { AuthService, AuthStatus } from '@app/core/auth' |
5 | import { UserLocalStorageKeys, UserTokens } from '@root-helpers/users' | ||
6 | import { getBoolOrDefault } from '@root-helpers/local-storage-utils' | 5 | import { getBoolOrDefault } from '@root-helpers/local-storage-utils' |
6 | import { logger } from '@root-helpers/logger' | ||
7 | import { UserLocalStorageKeys, UserTokens } from '@root-helpers/users' | ||
7 | import { UserRole, UserUpdateMe } from '@shared/models' | 8 | import { UserRole, UserUpdateMe } from '@shared/models' |
8 | import { NSFWPolicyType } from '@shared/models/videos' | 9 | import { NSFWPolicyType } from '@shared/models/videos' |
9 | import { ServerService } from '../server' | 10 | import { ServerService } from '../server' |
@@ -95,7 +96,7 @@ export class UserLocalStorageService { | |||
95 | : null | 96 | : null |
96 | } catch (err) { | 97 | } catch (err) { |
97 | videoLanguages = null | 98 | videoLanguages = null |
98 | console.error('Cannot parse desired video languages from localStorage.', err) | 99 | logger.error('Cannot parse desired video languages from localStorage.', err) |
99 | } | 100 | } |
100 | 101 | ||
101 | const htmlConfig = this.server.getHTMLConfig() | 102 | const htmlConfig = this.server.getHTMLConfig() |
@@ -142,7 +143,7 @@ export class UserLocalStorageService { | |||
142 | 143 | ||
143 | this.localStorageService.setItem(key, localStorageValue) | 144 | this.localStorageService.setItem(key, localStorageValue) |
144 | } catch (err) { | 145 | } catch (err) { |
145 | console.error(`Cannot set ${key}->${value} in localStorage. Likely due to a value impossible to stringify.`, err) | 146 | logger.error(`Cannot set ${key}->${value} in localStorage. Likely due to a value impossible to stringify.`, err) |
146 | } | 147 | } |
147 | } | 148 | } |
148 | } | 149 | } |