mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-29 06:15:29 -04:00
Improve Logging (#1519)
Improve Logging Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
1172a1d7b8
commit
0e512531a0
41 changed files with 361 additions and 92 deletions
|
@ -15,6 +15,9 @@ import { IconButton } from '../../common/icon-button/icon-button'
|
|||
import { CommonModal } from '../../common/modals/common-modal'
|
||||
import { DeletionModal } from '../../common/modals/deletion-modal'
|
||||
import { ShowIf } from '../../common/show-if/show-if'
|
||||
import { Logger } from '../../../utils/logger'
|
||||
|
||||
const log = new Logger('ProfileAccessTokens')
|
||||
|
||||
export const ProfileAccessTokens: React.FC = () => {
|
||||
const { t } = useTranslation()
|
||||
|
@ -37,7 +40,7 @@ export const ProfileAccessTokens: React.FC = () => {
|
|||
setNewTokenLabel('')
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error)
|
||||
log.error(error)
|
||||
setError(true)
|
||||
})
|
||||
},
|
||||
|
@ -50,7 +53,7 @@ export const ProfileAccessTokens: React.FC = () => {
|
|||
setSelectedForDeletion(0)
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error)
|
||||
log.error(error)
|
||||
setError(true)
|
||||
})
|
||||
.finally(() => {
|
||||
|
@ -74,7 +77,7 @@ export const ProfileAccessTokens: React.FC = () => {
|
|||
setAccessTokens(tokens)
|
||||
})
|
||||
.catch((err) => {
|
||||
console.error(err)
|
||||
log.error(err)
|
||||
setError(true)
|
||||
})
|
||||
}, [showAddedModal])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue