mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-24 03:57:06 -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
|
@ -6,8 +6,10 @@
|
|||
|
||||
import { useEffect } from 'react'
|
||||
import { dispatchUiNotification } from '../../redux/ui-notifications/methods'
|
||||
import { Logger } from '../../utils/logger'
|
||||
|
||||
const localStorageKey = 'dontshowtestnotification'
|
||||
const log = new Logger('Notification Test')
|
||||
|
||||
/**
|
||||
* Spawns a notification to test the system. Only for tech demo show case.
|
||||
|
@ -17,7 +19,7 @@ export const useNotificationTest = (): void => {
|
|||
if (window.localStorage.getItem(localStorageKey)) {
|
||||
return
|
||||
}
|
||||
console.debug('[Notifications] Dispatched test notification')
|
||||
log.debug('Dispatched test notification')
|
||||
void dispatchUiNotification('notificationTest.title', 'notificationTest.content', {
|
||||
icon: 'info-circle',
|
||||
buttons: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue