1
0
Fork 0

Remove unnecessary newline

This commit is contained in:
Michał Rudowicz 2024-02-11 22:56:58 +01:00
parent 9aed6bf218
commit ef746d73ec
1 changed files with 2 additions and 2 deletions

View File

@ -99,8 +99,8 @@ func main() {
tgSender := TgSender{bot}
go tgSenderWorker(tgEvents, tgSender, &wg, sleeper, log.New(os.Stderr, "TgSender", log.Lmicroseconds))
for e := range s.Events {
logger.Println("Received change from SATEL: ", e)
sendTgMessage(tgEvents, fmt.Sprintln("Change from SATEL: ", "type", e.Type, "index", e.Index, "value", e.Value), chatIds)
logger.Print("Received change from SATEL: ", e)
sendTgMessage(tgEvents, fmt.Sprint("Change from SATEL: type:", e.Type, ", index:", e.Index, ", value:", e.Value), chatIds)
}
close(tgEvents)