This commit is contained in:
Greg Oliver 2019-02-20 14:26:59 +00:00
Родитель 26ff8f7ab3
Коммит f7f3616fbe
1 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -32,6 +32,13 @@ namespace nsgFunc
throw new System.ArgumentNullException("blobContainerName", "Please provide setting.");
}
string outputBinding = Util.GetEnvironmentVariable("outputBinding");
if (outputBinding.Length == 0)
{
log.LogError("Value for outputBinding is required. Permitted values are: 'logstash', 'arcsight', 'splunk', 'eventhub'.");
return 0;
}
var blobDetails = new BlobDetails(subId, resourceGroup, nsgName, blobYear, blobMonth, blobDay, blobHour, blobMinute, mac);
// get checkpoint
@ -80,7 +87,7 @@ namespace nsgFunc
try
{
int bytesSent = await Util.SendMessagesDownstreamAsync(nsgMessagesString, log);
log.LogInformation($"Sending {nsgMessagesString.Length} bytes (denormalized to {bytesSent} bytes) downstream.");
log.LogInformation($"Sending {nsgMessagesString.Length} bytes (denormalized to {bytesSent} bytes) downstream via output binding {outputBinding}.");
}
catch (Exception ex)
{