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:
@@ -7,10 +7,8 @@ https://github.com/photoprism/photoprism/wiki
|
||||
*/
|
||||
package api
|
||||
|
||||
import "github.com/sirupsen/logrus"
|
||||
import (
|
||||
"github.com/photoprism/photoprism/internal/event"
|
||||
)
|
||||
|
||||
var log *logrus.Logger
|
||||
|
||||
func init() {
|
||||
log = logrus.StandardLogger()
|
||||
}
|
||||
var log = event.Log
|
||||
|
||||
Reference in New Issue
Block a user