mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 03:27:05 -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
|
@ -8,6 +8,9 @@ import { Revision } from '../../../../api/revisions/types'
|
|||
import { getUserById } from '../../../../api/users'
|
||||
import { UserResponse } from '../../../../api/users/types'
|
||||
import { download } from '../../../common/download/download'
|
||||
import { Logger } from '../../../../utils/logger'
|
||||
|
||||
const log = new Logger('RevisionsUtils')
|
||||
|
||||
export const downloadRevision = (noteId: string, revision: Revision | null): void => {
|
||||
if (!revision) {
|
||||
|
@ -26,7 +29,7 @@ export const getUserDataForRevision = (authors: string[]): UserResponse[] => {
|
|||
.then((userData) => {
|
||||
users.push(userData)
|
||||
})
|
||||
.catch((error) => console.error(error))
|
||||
.catch((error) => log.error(error))
|
||||
})
|
||||
return users
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue