mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 17:04:39 +03:00
wrap long lines with many logging parameters to multiple lines
for improved readability
This commit is contained in:
@ -115,7 +115,10 @@ func loadStaticGzipCache(dir string, maxSize int64) {
|
||||
if err != nil {
|
||||
pkglog.Infox("removing unusable/unrecognized file in static gzip cache dir", err)
|
||||
xerr := os.Remove(filepath.Join(dir, name))
|
||||
pkglog.Check(xerr, "removing unusable file in static gzip cache dir", slog.Any("error", err), slog.String("dir", dir), slog.String("filename", name))
|
||||
pkglog.Check(xerr, "removing unusable file in static gzip cache dir",
|
||||
slog.Any("error", err),
|
||||
slog.String("dir", dir),
|
||||
slog.String("filename", name))
|
||||
continue
|
||||
}
|
||||
staticgzcache.paths[path] = gzfile{
|
||||
|
10
http/web.go
10
http/web.go
@ -746,7 +746,10 @@ func listen1(ip string, port int, tlsConfig *tls.Config, name string, kinds []st
|
||||
if tlsConfig == nil {
|
||||
protocol = "http"
|
||||
if os.Getuid() == 0 {
|
||||
pkglog.Print("http listener", slog.String("name", name), slog.String("kinds", strings.Join(kinds, ",")), slog.String("address", addr))
|
||||
pkglog.Print("http listener",
|
||||
slog.String("name", name),
|
||||
slog.String("kinds", strings.Join(kinds, ",")),
|
||||
slog.String("address", addr))
|
||||
}
|
||||
ln, err = mox.Listen(mox.Network(ip), addr)
|
||||
if err != nil {
|
||||
@ -755,7 +758,10 @@ func listen1(ip string, port int, tlsConfig *tls.Config, name string, kinds []st
|
||||
} else {
|
||||
protocol = "https"
|
||||
if os.Getuid() == 0 {
|
||||
pkglog.Print("https listener", slog.String("name", name), slog.String("kinds", strings.Join(kinds, ",")), slog.String("address", addr))
|
||||
pkglog.Print("https listener",
|
||||
slog.String("name", name),
|
||||
slog.String("kinds", strings.Join(kinds, ",")),
|
||||
slog.String("address", addr))
|
||||
}
|
||||
ln, err = mox.Listen(mox.Network(ip), addr)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user