소스 검색

log.Info will respect global flags

pull/36/head
Rob Loranger 4 년 전
부모
커밋
941d234395
No known key found for this signature in database GPG 키 ID: D6F1633A4F0903B8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      log/logging.go

+ 1
- 1
log/logging.go 파일 보기

@@ -10,7 +10,7 @@ import (
// Info logs general diagnostic messages, shown only when the -v or --verbose
// flag is provided.
func Info(c *cli.Context, s string, p ...interface{}) {
if c.Bool("v") || c.Bool("verbose") {
if c.Bool("v") || c.Bool("verbose") || c.GlobalBool("v") || c.GlobalBool("verbose") {
fmt.Fprintf(os.Stderr, s+"\n", p...)
}
}


불러오는 중...
취소
저장