switch LogInformation messages to LogDebug
This commit is contained in:
Родитель
602191f88c
Коммит
aae0fdb7f6
|
@ -20,7 +20,7 @@ namespace nsgFunc
|
|||
ExecutionContext executionContext,
|
||||
ILogger log)
|
||||
{
|
||||
log.LogInformation($"BlobTriggerIngestAndTransmit triggered: {executionContext.InvocationId} ");
|
||||
log.LogDebug($"BlobTriggerIngestAndTransmit triggered: {executionContext.InvocationId} ");
|
||||
|
||||
string nsgSourceDataAccount = Util.GetEnvironmentVariable("nsgSourceDataAccount");
|
||||
if (nsgSourceDataAccount.Length == 0)
|
||||
|
@ -53,7 +53,7 @@ namespace nsgFunc
|
|||
var endingByte = blockList.Where((item, index) => index < blockList.Count()-1).Sum(item => item.Length);
|
||||
var dataLength = endingByte - startingByte;
|
||||
|
||||
log.LogInformation("Blob: {0}, starting byte: {1}, ending byte: {2}, number of bytes: {3}", blobDetails.ToString(), startingByte, endingByte, dataLength);
|
||||
log.LogDebug("Blob: {0}, starting byte: {1}, ending byte: {2}, number of bytes: {3}", blobDetails.ToString(), startingByte, endingByte, dataLength);
|
||||
|
||||
if (dataLength == 0)
|
||||
{
|
||||
|
@ -103,7 +103,7 @@ namespace nsgFunc
|
|||
try
|
||||
{
|
||||
int bytesSent = await Util.SendMessagesDownstreamAsync(nsgMessagesString, executionContext, log);
|
||||
log.LogInformation($"Sending {nsgMessagesString.Length} bytes (denormalized to {bytesSent} bytes) downstream via output binding {outputBinding}.");
|
||||
log.LogDebug($"Sending {nsgMessagesString.Length} bytes (denormalized to {bytesSent} bytes) downstream via output binding {outputBinding}.");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
@ -50,7 +50,7 @@ namespace nsgFunc
|
|||
if (count++ == 1000)
|
||||
{
|
||||
sw.Stop();
|
||||
log.LogInformation($"Time to build new transmission byte[] from convertToCEF: {sw.ElapsedMilliseconds}");
|
||||
log.LogDebug($"Time to build new transmission byte[] from convertToCEF: {sw.ElapsedMilliseconds}");
|
||||
|
||||
sw.Reset();
|
||||
sw.Start();
|
||||
|
@ -59,7 +59,7 @@ namespace nsgFunc
|
|||
bytesSent += transmission.Length;
|
||||
|
||||
sw.Stop();
|
||||
log.LogInformation($"Time to transmit to ArcSight server: {sw.ElapsedMilliseconds}");
|
||||
log.LogDebug($"Time to transmit to ArcSight server: {sw.ElapsedMilliseconds}");
|
||||
|
||||
sw.Reset();
|
||||
sw.Start();
|
||||
|
@ -81,7 +81,7 @@ namespace nsgFunc
|
|||
bytesSent += transmission.Length;
|
||||
|
||||
sw.Stop();
|
||||
log.LogInformation($"Time to transmit to ArcSight server: {sw.ElapsedMilliseconds}");
|
||||
log.LogDebug($"Time to transmit to ArcSight server: {sw.ElapsedMilliseconds}");
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
@ -131,7 +131,7 @@ namespace nsgFunc
|
|||
|
||||
transmittedByteCount += tuple.Item2;
|
||||
|
||||
log.LogInformation($"Transmitted {tuple.Item2} bytes, in time {sw.ElapsedMilliseconds}, operation id {executionContext.InvocationId}.");
|
||||
log.LogDebug($"Transmitted {tuple.Item2} bytes, in time {sw.ElapsedMilliseconds}, operation id {executionContext.InvocationId}.");
|
||||
sw.Reset();
|
||||
|
||||
}
|
||||
|
@ -158,7 +158,7 @@ namespace nsgFunc
|
|||
foreach (var messageList in denormalizedRecords(newClientContent, null, log))
|
||||
{
|
||||
sw.Stop();
|
||||
log.LogInformation($"Time to get new messageList from denormalizedRecords: {sw.ElapsedMilliseconds}");
|
||||
log.LogDebug($"Time to get new messageList from denormalizedRecords: {sw.ElapsedMilliseconds}");
|
||||
|
||||
sw.Reset();
|
||||
sw.Start();
|
||||
|
@ -169,7 +169,7 @@ namespace nsgFunc
|
|||
transmissionLength += bytesAppended;
|
||||
}
|
||||
sw.Stop();
|
||||
log.LogInformation($"Time to build transmission from messageList: {sw.ElapsedMilliseconds}");
|
||||
log.LogDebug($"Time to build transmission from messageList: {sw.ElapsedMilliseconds}");
|
||||
yield return Tuple.Create(transmission, transmissionLength);
|
||||
|
||||
sw.Reset();
|
||||
|
|
Загрузка…
Ссылка в новой задаче