Skip to content

Commit 888a0e9

Browse files
leventeliuQi Xiao
authored andcommitted
Fix issue while passing ... arguments
1 parent 2040370 commit 888a0e9

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

utils/log/logwrapper.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -206,65 +206,65 @@ func Infof(format string, args ...interface{}) {
206206

207207
// Warnf logs a message at level Warn on the standard logger.
208208
func Warnf(format string, args ...interface{}) {
209-
logrus.Warnf(format, args)
209+
logrus.Warnf(format, args...)
210210
}
211211

212212
// Warningf logs a message at level Warn on the standard logger.
213213
func Warningf(format string, args ...interface{}) {
214-
logrus.Warningf(format, args)
214+
logrus.Warningf(format, args...)
215215
}
216216

217217
// Errorf logs a message at level Error on the standard logger.
218218
func Errorf(format string, args ...interface{}) {
219-
logrus.Errorf(format, args)
219+
logrus.Errorf(format, args...)
220220
}
221221

222222
// Panicf logs a message at level Panic on the standard logger.
223223
func Panicf(format string, args ...interface{}) {
224-
logrus.Panicf(format, args)
224+
logrus.Panicf(format, args...)
225225
}
226226

227227
// Fatalf logs a message at level Fatal on the standard logger.
228228
func Fatalf(format string, args ...interface{}) {
229-
logrus.Panicf(format, args)
229+
logrus.Panicf(format, args...)
230230
}
231231

232232
// Debugln logs a message at level Debug on the standard logger.
233233
func Debugln(args ...interface{}) {
234-
logrus.Debugln(args)
234+
logrus.Debugln(args...)
235235
}
236236

237237
// Println logs a message at level Info on the standard logger.
238238
func Println(args ...interface{}) {
239-
logrus.Println(args)
239+
logrus.Println(args...)
240240
}
241241

242242
// Infoln logs a message at level Info on the standard logger.
243243
func Infoln(args ...interface{}) {
244-
logrus.Infoln(args)
244+
logrus.Infoln(args...)
245245
}
246246

247247
// Warnln logs a message at level Warn on the standard logger.
248248
func Warnln(args ...interface{}) {
249-
logrus.Warnln(args)
249+
logrus.Warnln(args...)
250250
}
251251

252252
// Warningln logs a message at level Warn on the standard logger.
253253
func Warningln(args ...interface{}) {
254-
logrus.Warningln(args)
254+
logrus.Warningln(args...)
255255
}
256256

257257
// Errorln logs a message at level Error on the standard logger.
258258
func Errorln(args ...interface{}) {
259-
logrus.Errorln(args)
259+
logrus.Errorln(args...)
260260
}
261261

262262
// Panicln logs a message at level Panic on the standard logger.
263263
func Panicln(args ...interface{}) {
264-
logrus.Panicln(args)
264+
logrus.Panicln(args...)
265265
}
266266

267267
// Fatalln logs a message at level Fatal on the standard logger.
268268
func Fatalln(args ...interface{}) {
269-
logrus.Fatalln(args)
269+
logrus.Fatalln(args...)
270270
}

0 commit comments

Comments
 (0)