Browse Source

En cours de développement

master
losyme 5 months ago
parent
commit
3b0cc0431e
  1. 2
      internal/application/application.go
  2. 5
      internal/application/events.go

2
internal/application/application.go

@ -78,7 +78,7 @@ func (app *Application) Run() error {
defer func() {
if err := cs.Storage.Close(); err != nil {
cs.Logger.Error("Error when closing storage", "reason", err) //:::::::::::::::::::::::::::::::::::::
cs.Logger.Error("Unable to close storage", "reason", err) //::::::::::::::::::::::::::::::::::::::::
}
}()

5
internal/application/events.go

@ -8,7 +8,10 @@ package application
import "forge.chapril.org/losyme/scheduler"
func (app *Application) eventManager(_ *scheduler.Message) {}
func (app *Application) eventManager(msg *scheduler.Message) {
cs := app.components
cs.Logger.Info("Event", "name", msg.Event) //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
}
/*
######################################################################################################## @(°_°)@ #######

Loading…
Cancel
Save