mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Logs: Prevent feedback loops by omitting repeated messages #2335
This also prevents debug and trace messages to be sent to the frontend.
This commit is contained in:
@@ -93,7 +93,11 @@ func wsReader(ws *websocket.Conn, writeMutex *sync.Mutex, connId string, conf *c
|
||||
func wsWriter(ws *websocket.Conn, writeMutex *sync.Mutex, connId string) {
|
||||
pingTicker := time.NewTicker(15 * time.Second)
|
||||
s := event.Subscribe(
|
||||
"log.*",
|
||||
"log.fatal",
|
||||
"log.error",
|
||||
"log.warning",
|
||||
"log.warn",
|
||||
"log.info",
|
||||
"notify.*",
|
||||
"index.*",
|
||||
"upload.*",
|
||||
|
||||
Reference in New Issue
Block a user