add time
parent
02b762d99f
commit
9bff38249d
|
@ -5,6 +5,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"jannex/log-manager/modules/loghandler"
|
"jannex/log-manager/modules/loghandler"
|
||||||
"jannex/log-manager/modules/structs"
|
"jannex/log-manager/modules/structs"
|
||||||
|
"time"
|
||||||
|
|
||||||
gocnjhelper "git.ex.umbach.dev/ClickandJoin/go-cnj-helper"
|
gocnjhelper "git.ex.umbach.dev/ClickandJoin/go-cnj-helper"
|
||||||
amqp "github.com/rabbitmq/amqp091-go"
|
amqp "github.com/rabbitmq/amqp091-go"
|
||||||
|
@ -57,8 +58,10 @@ func LogsMessagesHandling() {
|
||||||
|
|
||||||
var msgs []string
|
var msgs []string
|
||||||
|
|
||||||
|
date := time.Now().Format("15:04:05")
|
||||||
|
|
||||||
for _, mailMessage := range logMessage {
|
for _, mailMessage := range logMessage {
|
||||||
msgs = append(msgs, mailMessage.Msg)
|
msgs = append(msgs, date+" "+mailMessage.Msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: dynamic type - currently only mailer is used for logs
|
// TODO: dynamic type - currently only mailer is used for logs
|
||||||
|
|
Loading…
Reference in New Issue