1
0
forked from ALHP/ALHP.GO

re-enable journalhook

need a cmdline switch for this, it's on the TODO :)
This commit is contained in:
2021-08-30 11:05:11 +02:00
parent b78b09aeaa
commit 449b772442

View File

@@ -11,6 +11,7 @@ import (
"github.com/Morganamilo/go-srcinfo"
_ "github.com/mattn/go-sqlite3"
log "github.com/sirupsen/logrus"
"github.com/wercker/journalhook"
"gopkg.in/yaml.v2"
"html/template"
"os"
@@ -599,7 +600,7 @@ func main() {
lvl, err := log.ParseLevel(conf.Logging.Level)
check(err)
log.SetLevel(lvl)
// journalhook.Enable()
journalhook.Enable()
err = syscall.Setpriority(syscall.PRIO_PROCESS, 0, 5)
if err != nil {