Skip to content

Commit 12618ff

Browse files
authored
Fix spelling of occurred (#7811)
1 parent 0d6bed2 commit 12618ff

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

src/WebJobs.Script.WebHost/Diagnostics/Extensions/ScriptHostServiceLoggerExtension.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,16 @@ public static class ScriptHostServiceLoggerExtension
102102
new EventId(514, nameof(StartupOperationWasCanceled)),
103103
"Host startup operation '{operationId}' was canceled.");
104104

105-
private static readonly Action<ILogger, Guid, Exception> _errorOccuredDuringStartupOperation =
105+
private static readonly Action<ILogger, Guid, Exception> _errorOccurredDuringStartupOperation =
106106
LoggerMessage.Define<Guid>(
107107
LogLevel.Error,
108-
new EventId(515, nameof(ErrorOccuredDuringStartupOperation)),
108+
new EventId(515, nameof(ErrorOccurredDuringStartupOperation)),
109109
"A host error has occurred during startup operation '{operationId}'.");
110110

111-
private static readonly Action<ILogger, Guid, Exception> _errorOccuredInactive =
111+
private static readonly Action<ILogger, Guid, Exception> _errorOccurredInactive =
112112
LoggerMessage.Define<Guid>(
113113
LogLevel.Warning,
114-
new EventId(516, nameof(ErrorOccuredInactive)),
114+
new EventId(516, nameof(ErrorOccurredInactive)),
115115
"A host error has occurred on an inactive host during startup operation '{operationId}'.");
116116

117117
private static readonly Action<ILogger, Guid, Exception> _cancellationRequested =
@@ -261,14 +261,14 @@ public static void StartupOperationWasCanceled(this ILogger logger, Guid operati
261261
_startupOperationWasCanceled(logger, operationId, null);
262262
}
263263

264-
public static void ErrorOccuredDuringStartupOperation(this ILogger logger, Guid operationId, Exception ex)
264+
public static void ErrorOccurredDuringStartupOperation(this ILogger logger, Guid operationId, Exception ex)
265265
{
266-
_errorOccuredDuringStartupOperation(logger, operationId, ex);
266+
_errorOccurredDuringStartupOperation(logger, operationId, ex);
267267
}
268268

269-
public static void ErrorOccuredInactive(this ILogger logger, Guid operationId, Exception ex)
269+
public static void ErrorOccurredInactive(this ILogger logger, Guid operationId, Exception ex)
270270
{
271-
_errorOccuredInactive(logger, operationId, ex);
271+
_errorOccurredInactive(logger, operationId, ex);
272272
}
273273

274274
public static void CancellationRequested(this ILogger logger, Guid operationId)

src/WebJobs.Script.WebHost/Helpers/TableStorageHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ internal static void QueueBackgroundTablePurge(CloudTable currentTable, CloudTab
6666
{
6767
// best effort - if purge fails we log and ignore
6868
// we'll try again another time
69-
logger.LogError(e, "Error occured when attempting to delete old diagnostic events tables.");
69+
logger.LogError(e, "Error occurred when attempting to delete old diagnostic events tables.");
7070
}
7171
});
7272
}

src/WebJobs.Script.WebHost/Scale/TableStorageScaleMetricsRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ internal void QueueBackgroundMetricsTablePurge(int delaySeconds = MetricsPurgeDe
377377
{
378378
// best effort - if purge fails we log an ignore
379379
// we'll try again another time
380-
_logger.LogError(e, "Error occured when attempting to delete old metrics tables.");
380+
_logger.LogError(e, "Error occurred when attempting to delete old metrics tables.");
381381
}
382382
});
383383
}

src/WebJobs.Script.WebHost/WebJobsScriptHostService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,14 +316,14 @@ private async Task UnsynchronizedStartHostAsync(ScriptHostStartupOperation activ
316316
{
317317
LastError = exc;
318318
State = ScriptHostState.Error;
319-
logger.ErrorOccuredDuringStartupOperation(activeOperation.Id, exc);
319+
logger.ErrorOccurredDuringStartupOperation(activeOperation.Id, exc);
320320
}
321321
else
322322
{
323323
// Another host has been created before this host
324324
// threw its startup exception. We want to make sure it
325325
// doesn't control the state of the service.
326-
logger.ErrorOccuredInactive(activeOperation.Id, exc);
326+
logger.ErrorOccurredInactive(activeOperation.Id, exc);
327327
}
328328

329329
attemptCount++;

test/WebJobs.Script.Tests/Diagnostics/DiagnosticEventLoggerTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public void DiagnosticEventLogger_OnlylogsMessages_WithRequiredProperties()
2424
{
2525
var logger = provider.CreateLogger("MS_DiagnosticEvents");
2626

27-
logger.LogDiagnosticEvent(LogLevel.Error, 123, "FN123", "Actionable event occured", "https://fwlink", null);
27+
logger.LogDiagnosticEvent(LogLevel.Error, 123, "FN123", "Actionable event occurred", "https://fwlink", null);
2828

2929
logger.LogInformation("Error code: {MS_errorCode}, Error Message: {message}, HelpLink: {MS_HelpLink}", "Erro123", "Unknown Error", "http://helpLink");
3030
}
@@ -47,7 +47,7 @@ public void DiagnosticEventLogger_OnlylogsMessages_WhenSpecialized()
4747

4848
environment.SetEnvironmentVariable(EnvironmentSettingNames.AzureWebsitePlaceholderMode, "0");
4949

50-
logger.LogDiagnosticEvent(LogLevel.Error, 123, "FN123", "Actionable event occured", "https://fwlink", null);
50+
logger.LogDiagnosticEvent(LogLevel.Error, 123, "FN123", "Actionable event occurred", "https://fwlink", null);
5151
}
5252

5353
Assert.Equal(1, repository.Events.Count);

0 commit comments

Comments
 (0)