Skip to content

Commit b5f6174

Browse files
committed
Minor logging change
1 parent da5e7e2 commit b5f6174

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

samples/Foundatio.HostingSample/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
app.MapGet("/runjob", async httpContext =>
119119
{
120120
var jobManager = httpContext.RequestServices.GetRequiredService<IJobManager>();
121-
//await jobManager.RunJobAsync("EvenMinutes");
121+
await jobManager.RunJobAsync("EvenMinutes");
122122
await jobManager.RunJobAsync<EveryMinuteJob>();
123123

124124
await httpContext.Response.WriteAsync("Job manually triggered");

src/Foundatio.Extensions.Hosting/Jobs/ScheduledJobInstance.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public async Task StartAsync(bool isManual, CancellationToken cancellationToken
197197
{
198198
try
199199
{
200-
_logger.LogInformation("Job {JobName} ({JobId}) starting for time: {ScheduledTime}", Options.Name,
200+
_logger.LogInformation("{JobType} {JobName} ({JobId}) starting for time: {ScheduledTime}", Options.IsDistributed ? "Distributed job" : "Job", Options.Name,
201201
Id, isManual ? "Manual" : NextRun!.Value.ToString("t"));
202202

203203
await using var scope = _serviceProvider.CreateAsyncScope();

0 commit comments

Comments
 (0)