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/Morganamilo/go-srcinfo"
|
||||||
_ "github.com/mattn/go-sqlite3"
|
_ "github.com/mattn/go-sqlite3"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
"github.com/wercker/journalhook"
|
||||||
"gopkg.in/yaml.v2"
|
"gopkg.in/yaml.v2"
|
||||||
"html/template"
|
"html/template"
|
||||||
"os"
|
"os"
|
||||||
@@ -599,7 +600,7 @@ func main() {
|
|||||||
lvl, err := log.ParseLevel(conf.Logging.Level)
|
lvl, err := log.ParseLevel(conf.Logging.Level)
|
||||||
check(err)
|
check(err)
|
||||||
log.SetLevel(lvl)
|
log.SetLevel(lvl)
|
||||||
// journalhook.Enable()
|
journalhook.Enable()
|
||||||
|
|
||||||
err = syscall.Setpriority(syscall.PRIO_PROCESS, 0, 5)
|
err = syscall.Setpriority(syscall.PRIO_PROCESS, 0, 5)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user