Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
use cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
TennyZhuang committed Mar 18, 2020
1 parent 908d838 commit ebf9900
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ package cmd

import (
"context"
"fmt"
"net/http"
"net/http/pprof"
"os"
Expand Down Expand Up @@ -85,7 +84,7 @@ func Init(cmd *cobra.Command) (err error) {
atomic.StoreUint64(&hasLogFile, 1)
summary.InitCollector(true)
} else {
fmt.Printf("log file: %s\n", conf.File.Filename)
cmd.Printf("log file: %s\n", conf.File.Filename)
}
lg, p, e := log.InitLogger(conf)
if e != nil {
Expand Down

0 comments on commit ebf9900

Please sign in to comment.