Skip to content

Commit

Permalink
remove dead config option --verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
joewalnes committed Mar 15, 2013
1 parent 1f0e543 commit bc22b7b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 0 additions & 3 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
type Config struct {
BasePath string // Base URL path. e.g. "/"
Addr string // TCP address to listen on. e.g. ":1234", "1.2.3.4:1234"
Verbose bool // Verbose logging.
LogLevel libwebsocketd.LogLevel
*libwebsocketd.Config
}
Expand All @@ -33,7 +32,6 @@ func parseCommandLine() Config {
// server config options
portFlag := flag.Int("port", 80, "HTTP port to listen on")
addressFlag := flag.String("address", "0.0.0.0", "Interface to bind to (e.g. 127.0.0.1)")
verboseFlag := flag.Bool("verbose", false, "Enable verbose logging")
versionFlag := flag.Bool("version", false, "Print version and exit")
licenseFlag := flag.Bool("license", false, "Print license and exit")
logLevelFlag := flag.String("loglevel", "access", "Log level, one of: debug, trace, access, info, error, fatal")
Expand All @@ -47,7 +45,6 @@ func parseCommandLine() Config {
flag.Parse()

mainConfig.Addr = fmt.Sprintf("%s:%d", *addressFlag, *portFlag)
mainConfig.Verbose = *verboseFlag
mainConfig.BasePath = *basePathFlag

switch *logLevelFlag {
Expand Down
4 changes: 1 addition & 3 deletions help.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ Options:
--basepath=PATH Base path in URLs to serve from.
Default: / (root of domain)
--verbose Enable verbose logging to stdout.
--reverselookup={true,false} Perform DNS reverse lookups on remote clients.
Default: true
Expand All @@ -68,7 +66,7 @@ Options:
--loglevel={debug, Log level to use (from most to least
trace, verbose).
access,
access, Default: access
info,
error,
fatal}
Expand Down

0 comments on commit bc22b7b

Please sign in to comment.