Skip to content

Commit

Permalink
fix: Enable tracing for demo and set server flags
Browse files Browse the repository at this point in the history
  • Loading branch information
LBeernaertProton committed Jul 11, 2022
1 parent b8ae801 commit 3134478
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions demo/demo.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@ func main() {
logrus.SetLevel(level)
}

loggerIn := logrus.StandardLogger().WriterLevel(logrus.TraceLevel)
loggerOut := logrus.StandardLogger().WriterLevel(logrus.TraceLevel)

ctx := context.Background()
server, err := gluon.New(temp())
server, err := gluon.New(temp(), gluon.WithLogger(
loggerIn,
loggerOut,
))

defer server.Close(ctx)

Expand Down Expand Up @@ -56,8 +62,8 @@ func addUser(ctx context.Context, server *gluon.Server, addresses []string, pass
addresses,
password,
time.Second,
imap.NewFlagSet(),
imap.NewFlagSet(),
imap.NewFlagSet(`\Answered`, `\Seen`, `\Flagged`, `\Deleted`),
imap.NewFlagSet(`\Answered`, `\Seen`, `\Flagged`, `\Deleted`),
imap.NewFlagSet(),
)

Expand Down

0 comments on commit 3134478

Please sign in to comment.