mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-19 09:42:29 +08:00
Orchard.Recipes: Fixing that RecipeExecutionLogger should be able to handle messages without arguments
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user