Skip to content

Commit de96a21

Browse files
committed
fix(controllers): adjust log messages to match routes
1 parent 1bc5e2c commit de96a21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Dotnet.Samples.AspNetCore.WebApi/Controllers/PlayerController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,15 @@ public async Task<IResult> GetBySquadNumberAsync([FromRoute] int squadNumber)
133133
if (player != null)
134134
{
135135
logger.LogInformation(
136-
"GET /players/squad/{SquadNumber} retrieved: {@Player}",
136+
"GET /players/{SquadNumber} retrieved: {@Player}",
137137
squadNumber,
138138
player
139139
);
140140
return TypedResults.Ok(player);
141141
}
142142
else
143143
{
144-
logger.LogWarning("GET /players/squad/{SquadNumber} not found", squadNumber);
144+
logger.LogWarning("GET /players/{SquadNumber} not found", squadNumber);
145145
return TypedResults.NotFound();
146146
}
147147
}

0 commit comments

Comments
 (0)