Skip to content

Commit 21b77a1

Browse files
authored
Update logging on serve command (#1)
* fix: Remove unnecessary print statement in serve command * feat: Update log message to reference the endpoint on serve command
1 parent 8fa895f commit 21b77a1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/serve.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,8 @@ func CommandServe(cmd *cobra.Command, args []string) {
4444
}
4545

4646
content, err := ReadOpenAPIFile(filePath)
47-
fmt.Println(string(content))
4847

4948
http.Handle("/openapi/", http.StripPrefix("/openapi", swaggerui.Handler(content)))
50-
log.Println("serving on :8080")
49+
log.Println("Serving OpenAPI Specs on http://localhost:8080/openapi")
5150
log.Fatal(http.ListenAndServe(":8080", nil))
5251
}

0 commit comments

Comments
 (0)