I understand the concept of this warning (similar to this question), but what is wrong with this code?
private async Task LogWarningAsync(short? userCodeId, string message, params object[] args)
{
_logger.LogWarning(message, args);
// Do something on the database...
}
The warning:
CA2254
The logging message template should not vary between calls to 'LoggerExtensions.LogWarning(ILogger, string?, params object?[])'