some changes

master
serr 2025-04-06 15:43:30 +03:00
parent 4f4e58341f
commit 48762d3269
3 changed files with 3 additions and 8 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
config.json
config.json
restart.sh

View File

@ -9,12 +9,6 @@ import (
"net/http"
)
/*
sudo systemctl stop server.service
go build main.go
sudo systemctl start server.service
*/
func init() {
log.SetPrefix("hikan.ru | ")
}

View File

@ -25,5 +25,5 @@ func GetJournalctlLogs(serviceName, grepPattern string, hoursAgo int) ([]byte, e
return nil, err
}
return output.Bytes(), nil
return bytes.TrimSpace(output.Bytes()), nil
}