Merge pull request #2550 from filecoin-project/fix/runtime-logs

fix: correctly pass variadic args from runtime log
This commit is contained in:
Łukasz Magiera 2020-07-23 20:42:52 +02:00 committed by GitHub
commit 637ec168df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -581,12 +581,12 @@ func (rt *Runtime) abortIfAlreadyValidated() {
func (rt *Runtime) Log(level vmr.LogLevel, msg string, args ...interface{}) { func (rt *Runtime) Log(level vmr.LogLevel, msg string, args ...interface{}) {
switch level { switch level {
case vmr.DEBUG: case vmr.DEBUG:
actorLog.Debugf(msg, args) actorLog.Debugf(msg, args...)
case vmr.INFO: case vmr.INFO:
actorLog.Infof(msg, args) actorLog.Infof(msg, args...)
case vmr.WARN: case vmr.WARN:
actorLog.Warnf(msg, args) actorLog.Warnf(msg, args...)
case vmr.ERROR: case vmr.ERROR:
actorLog.Errorf(msg, args) actorLog.Errorf(msg, args...)
} }
} }