aboutsummaryrefslogtreecommitdiffstats
path: root/server.go
diff options
context:
space:
mode:
authorLibravatarLibravatar Simon Ser <[email protected]> 2020-02-11 18:39:52 +0100
committerLibravatarLibravatar Simon Ser <[email protected]> 2020-02-11 18:39:52 +0100
commit13f541469198e29f9a16f54aeecf7b55cea629c8 (patch)
tree37e2e0af377f63545725acca8cddd0acfc05bf66 /server.go
parente59ad57e32289ef62e17a8361b6d36b77e56a25d (diff)
downloadalps-13f541469198e29f9a16f54aeecf7b55cea629c8.tar.gz
alps-13f541469198e29f9a16f54aeecf7b55cea629c8.tar.bz2
alps-13f541469198e29f9a16f54aeecf7b55cea629c8.zip
cmd/koushin: add -debug flag
Diffstat (limited to 'server.go')
-rw-r--r--server.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/server.go b/server.go
index bccbed8..5fdcc8b 100644
--- a/server.go
+++ b/server.go
@@ -59,7 +59,7 @@ func newServer(e *echo.Echo, options *Options) (*Server, error) {
return nil, err
}
- s.Sessions = newSessionManager(s.dialIMAP, s.dialSMTP, e.Logger)
+ s.Sessions = newSessionManager(s.dialIMAP, s.dialSMTP, e.Logger, options.Debug)
return s, nil
}
@@ -283,6 +283,7 @@ func handleUnauthenticated(next echo.HandlerFunc, ctx *Context) error {
type Options struct {
Upstreams []string
Theme string
+ Debug bool
}
// New creates a new server.