Skip to content

Commit

Permalink
Log server options in verbose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Linz committed Jun 14, 2018
1 parent 5d1bb92 commit b00af64
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/f3/f3.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func run(credentialsFilename string, flags cliFlags) error {
return errors.Wrapf(err, "Failed to instantiate new driver factory")
}

ftpServer := ftp.NewServer(&ftp.ServerOpts{
serverOpts := ftp.ServerOpts{
Factory: factory,
Auth: creds,
Name: AppName,
Expand All @@ -112,7 +112,10 @@ func run(credentialsFilename string, flags cliFlags) error {
PassivePorts: getEnvOrDefault("FTP_PASSIVE_PORT_RANGE", flags.ftpPassivePortRange),
WelcomeMessage: fmt.Sprintf("%s says hello!", AppName),
Logger: &server.FTPLogger{},
})
}
logrus.Debugf("Server options: %#v\n", serverOpts)

ftpServer := ftp.NewServer(&serverOpts)
logrus.Infof("FTP server starts listening on \"%s:%d\"", ftpHost, ftpPort)
return ftpServer.ListenAndServe()
}
Expand Down

0 comments on commit b00af64

Please sign in to comment.