From b497f80dd7008b42489ad2f95fef411c6a2d49b3 Mon Sep 17 00:00:00 2001 From: Lombiq Date: Wed, 19 Sep 2018 22:45:34 +0200 Subject: [PATCH] Orchard.Recipes: Fixing that RecipeExecutionLogger should be able to handle messages without arguments --- src/Orchard/Recipes/Services/RecipeExecutionLogger.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard/Recipes/Services/RecipeExecutionLogger.cs b/src/Orchard/Recipes/Services/RecipeExecutionLogger.cs index f27cee9a0..005b20631 100644 --- a/src/Orchard/Recipes/Services/RecipeExecutionLogger.cs +++ b/src/Orchard/Recipes/Services/RecipeExecutionLogger.cs @@ -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); } }