@@ -698,7 +698,7 @@ func (l *loggingT) printDepth(s severity, depth int, args ...interface{}) {
698
698
l .output (s , buf , file , line , false )
699
699
}
700
700
701
- func (l * loggingT ) printf (s severity , format string , args ... interface {}) {
701
+ func (l * loggingT ) printfmt (s severity , format string , args ... interface {}) {
702
702
buf , file , line := l .header (s , 0 )
703
703
fmt .Fprintf (buf , format , args ... )
704
704
if buf .Bytes ()[buf .Len ()- 1 ] != '\n' {
@@ -1088,7 +1088,7 @@ func (v Verbose) Infoln(args ...interface{}) {
1088
1088
// See the documentation of V for usage.
1089
1089
func (v Verbose ) Infof (format string , args ... interface {}) {
1090
1090
if v {
1091
- logging .printf (infoLog , format , args ... )
1091
+ logging .printfmt (infoLog , format , args ... )
1092
1092
}
1093
1093
}
1094
1094
@@ -1107,13 +1107,13 @@ func InfoDepth(depth int, args ...interface{}) {
1107
1107
// Infoln logs to the INFO log.
1108
1108
// Arguments are handled in the manner of fmt.Println; a newline is appended if missing.
1109
1109
func Infoln (args ... interface {}) {
1110
- logging .println (infoLog , args ... )
1110
+ logging .print (infoLog , args ... )
1111
1111
}
1112
1112
1113
1113
// Infof logs to the INFO log.
1114
1114
// Arguments are handled in the manner of fmt.Printf; a newline is appended if missing.
1115
1115
func Infof (format string , args ... interface {}) {
1116
- logging .printf (infoLog , format , args ... )
1116
+ logging .printfmt (infoLog , format , args ... )
1117
1117
}
1118
1118
1119
1119
// Warning logs to the WARNING and INFO logs.
@@ -1137,7 +1137,7 @@ func Warningln(args ...interface{}) {
1137
1137
// Warningf logs to the WARNING and INFO logs.
1138
1138
// Arguments are handled in the manner of fmt.Printf; a newline is appended if missing.
1139
1139
func Warningf (format string , args ... interface {}) {
1140
- logging .printf (warningLog , format , args ... )
1140
+ logging .printfmt (warningLog , format , args ... )
1141
1141
}
1142
1142
1143
1143
// Error logs to the ERROR, WARNING, and INFO logs.
@@ -1161,7 +1161,7 @@ func Errorln(args ...interface{}) {
1161
1161
// Errorf logs to the ERROR, WARNING, and INFO logs.
1162
1162
// Arguments are handled in the manner of fmt.Printf; a newline is appended if missing.
1163
1163
func Errorf (format string , args ... interface {}) {
1164
- logging .printf (errorLog , format , args ... )
1164
+ logging .printfmt (errorLog , format , args ... )
1165
1165
}
1166
1166
1167
1167
// Fatal logs to the FATAL, ERROR, WARNING, and INFO logs,
@@ -1188,7 +1188,7 @@ func Fatalln(args ...interface{}) {
1188
1188
// including a stack trace of all running goroutines, then calls os.Exit(255).
1189
1189
// Arguments are handled in the manner of fmt.Printf; a newline is appended if missing.
1190
1190
func Fatalf (format string , args ... interface {}) {
1191
- logging .printf (fatalLog , format , args ... )
1191
+ logging .printfmt (fatalLog , format , args ... )
1192
1192
}
1193
1193
1194
1194
// fatalNoStacks is non-zero if we are to exit without dumping goroutine stacks.
@@ -1219,5 +1219,5 @@ func Exitln(args ...interface{}) {
1219
1219
// Arguments are handled in the manner of fmt.Printf; a newline is appended if missing.
1220
1220
func Exitf (format string , args ... interface {}) {
1221
1221
atomic .StoreUint32 (& fatalNoStacks , 1 )
1222
- logging .printf (fatalLog , format , args ... )
1222
+ logging .printfmt (fatalLog , format , args ... )
1223
1223
}
0 commit comments