diff options
author | Chocobozzz <me@florianbigard.com> | 2022-10-12 16:09:02 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2022-10-24 14:48:24 +0200 |
commit | 3545e72c686ff1725bbdfd8d16d693e2f4aa75a3 (patch) | |
tree | e7f1d12ef5dae1e1142c3a8d0b681c1dbbb0de10 /client/src/root-helpers/logger.ts | |
parent | 38a3ccc7f8ad0ea94362b58c732af7c387ab46be (diff) | |
download | PeerTube-3545e72c686ff1725bbdfd8d16d693e2f4aa75a3.tar.gz PeerTube-3545e72c686ff1725bbdfd8d16d693e2f4aa75a3.tar.zst PeerTube-3545e72c686ff1725bbdfd8d16d693e2f4aa75a3.zip |
Put private videos under a specific subdirectory
Diffstat (limited to 'client/src/root-helpers/logger.ts')
-rw-r--r-- | client/src/root-helpers/logger.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/root-helpers/logger.ts b/client/src/root-helpers/logger.ts index 0d486c433..d1fdf73aa 100644 --- a/client/src/root-helpers/logger.ts +++ b/client/src/root-helpers/logger.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { ClientLogCreate } from '@shared/models/server' | 1 | import { ClientLogCreate } from '@shared/models/server' |
2 | import { peertubeLocalStorage } from './peertube-web-storage' | 2 | import { peertubeLocalStorage } from './peertube-web-storage' |
3 | import { UserTokens } from './users' | 3 | import { OAuthUserTokens } from './users' |
4 | 4 | ||
5 | export type LoggerHook = (message: LoggerMessage, meta?: LoggerMeta) => void | 5 | export type LoggerHook = (message: LoggerMessage, meta?: LoggerMeta) => void |
6 | export type LoggerLevel = 'info' | 'warn' | 'error' | 6 | export type LoggerLevel = 'info' | 'warn' | 'error' |
@@ -56,7 +56,7 @@ class Logger { | |||
56 | }) | 56 | }) |
57 | 57 | ||
58 | try { | 58 | try { |
59 | const tokens = UserTokens.getUserTokens(peertubeLocalStorage) | 59 | const tokens = OAuthUserTokens.getUserTokens(peertubeLocalStorage) |
60 | 60 | ||
61 | if (tokens) headers.set('Authorization', `${tokens.tokenType} ${tokens.accessToken}`) | 61 | if (tokens) headers.set('Authorization', `${tokens.tokenType} ${tokens.accessToken}`) |
62 | } catch (err) { | 62 | } catch (err) { |