mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Add event hook for sending logs to frontend
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
@@ -30,7 +30,7 @@ func wsReader(ws *websocket.Conn) {
|
||||
|
||||
func wsWriter(ws *websocket.Conn, conf *config.Config) {
|
||||
pingTicker := time.NewTicker(10 * time.Second)
|
||||
s := event.Subscribe("notify.*", "index.*", "upload.*", "import.*", "config.*")
|
||||
s := event.Subscribe("log.*", "notify.*", "index.*", "upload.*", "import.*", "config.*")
|
||||
|
||||
defer func() {
|
||||
pingTicker.Stop()
|
||||
|
||||
Reference in New Issue
Block a user