Skip to content

Commit 59c5e51

Browse files
committed
If a single file is given as an argument, don't output the server name and version
1 parent a58c408 commit 59c5e51

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

engine/config.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,10 +504,9 @@ func (ac *Config) MustServe(mux *http.ServeMux) error {
504504
if !ac.quietMode && !ac.singleFileMode && !ac.simpleMode && !ac.noBanner {
505505
// Output a colorful ansi logo if a proper terminal is available
506506
fmt.Println(Banner(ac.versionString, ac.description))
507-
} else if !ac.quietMode {
507+
} else if !ac.quietMode && !ac.singleFileMode {
508508
timestamp := time.Now().Format("2006-01-02 15:04")
509509
to.OutputTags("<cyan>" + ac.versionString + "<darkgray> - " + timestamp + "<off>")
510-
// colorstring.Println("[cyan]" + ac.versionString + "[dark_gray] - " + timestamp + "[reset]")
511510
}
512511

513512
// Disable the database backend if the BoltDB filename is the /dev/null file (or OS equivalent)

0 commit comments

Comments
 (0)