all repos — honk @ 99b067ca1b388fe3c1f4172d8bf9e345f1703d60

my fork of honk

update for logging
Ted Unangst tedu@tedunangst.com
Thu, 03 Mar 2022 15:48:45 -0500
commit

99b067ca1b388fe3c1f4172d8bf9e345f1703d60

parent

c114bd4d332fef55c8b30e7f17d35d0b2a053bf3

4 files changed, 6 insertions(+), 5 deletions(-)

jump to
M admin.goadmin.go

@@ -35,7 +35,7 @@ "humungus.tedunangst.com/r/webs/log"

) func adminscreen() { - log.InitX("honk", "null", "null", "null") + log.Init(log.Options{Progname: "honk", Alllogname: "null"}) stdout := bufio.NewWriter(os.Stdout) esc := "\x1b" smcup := esc + "[?1049h"
M go.modgo.mod

@@ -10,5 +10,5 @@ golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897

golang.org/x/image v0.0.0-20200927104501-e162460cd6b5 // indirect golang.org/x/net v0.0.0-20201110031124-69a78807bb2b humungus.tedunangst.com/r/go-sqlite3 v1.1.3 - humungus.tedunangst.com/r/webs v0.6.50 + humungus.tedunangst.com/r/webs v0.6.51 )
M go.sumgo.sum

@@ -24,5 +24,5 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=

golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= humungus.tedunangst.com/r/go-sqlite3 v1.1.3 h1:G2N4wzDS0NbuvrZtQJhh4F+3X+s7BF8b9ga8k38geUI= humungus.tedunangst.com/r/go-sqlite3 v1.1.3/go.mod h1:FtEEmQM7U2Ey1TuEEOyY1BmphTZnmiEjPsNLEAkpf/M= -humungus.tedunangst.com/r/webs v0.6.50 h1:MScU6TwnaluLUuyveARr43iXJkv2xeyAWBKea+5tnLA= -humungus.tedunangst.com/r/webs v0.6.50/go.mod h1:S9sXpVSbgAIa24yYhnMN0C94LKHG+2rioS+NsiDimps= +humungus.tedunangst.com/r/webs v0.6.51 h1:WMXV53VGwvZYPeB/H1lEhimauPzKSZUb00lIXvXH7PM= +humungus.tedunangst.com/r/webs v0.6.51/go.mod h1:S9sXpVSbgAIa24yYhnMN0C94LKHG+2rioS+NsiDimps=
M honk.gohonk.go

@@ -20,6 +20,7 @@ "flag"

"fmt" "html/template" golog "log" + "log/syslog" notrand "math/rand" "os" "strconv"

@@ -282,7 +283,7 @@ flag.StringVar(&dataDir, "datadir", dataDir, "data directory")

flag.StringVar(&viewDir, "viewdir", viewDir, "view directory") flag.Parse() - log.Init("honk") + log.Init(log.Options{Progname: "honk", Facility: syslog.LOG_UUCP}) elog = log.E ilog = log.I dlog = log.D