Skip to content
This repository was archived by the owner on May 2, 2023. It is now read-only.

Commit 381cb8c

Browse files
author
Dave Johnston
committed
Additional verbose output
1 parent d528788 commit 381cb8c

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

goserve.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ func init() {
3737
flag.Parse()
3838

3939
if *configPath == "" {
40+
if verbose {
41+
log.Println("Config file not specified; using arguments")
42+
}
43+
4044
cfg.Listeners = []Listener{}
4145

4246
if *httpEnabled {
@@ -70,6 +74,10 @@ func init() {
7074
},
7175
}
7276
} else {
77+
if verbose {
78+
log.Println("Config file specified; ignoring command line arguments")
79+
}
80+
7381
var err error
7482
cfg, err = readServerConfig(*configPath)
7583
if err != nil {

handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func (s *StaticServeMux) ServeHTTP(w http.ResponseWriter, r *http.Request) {
8383
h.ServeHTTP(w, r)
8484
}
8585

86-
// InterceptResponseWriter allows non-200 responses to be intercepted based
86+
// InterceptResponseWriter allows non-200 responses to be intercepted based
8787
// on their status code.
8888
type InterceptResponseWriter struct {
8989
http.ResponseWriter

0 commit comments

Comments
 (0)