Orchard.Recipes: Fixing that RecipeExecutionLogger should be able to handle messages without arguments

This commit is contained in:
Lombiq
2018-09-19 22:45:34 +02:00
committed by Benedek Farkas
parent 1a1470c77a
commit b497f80dd7

View File

@@ -15,7 +15,7 @@ namespace Orchard.Recipes.Services {
}
public void Log(LogLevel level, Exception exception, string format, params object[] args) {
var message = String.Format(format, args);
var message = args == null ? format : string.Format(format, args);
Logger.Log(level, exception, "{0}: {1}", ComponentType.Name, message);
}
}