forked from ALHP/ALHP.GO
re-enable journalhook
need a cmdline switch for this, it's on the TODO :)
This commit is contained in:
3
main.go
3
main.go
@@ -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 {
|
||||
|
Reference in New Issue
Block a user