Skip to content

Commit

Permalink
Fixed log issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland Guijt committed Jul 3, 2024
1 parent 48993c6 commit 00122f3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public IActionResult Post([FromBody] ToDo model)
model.User = $"{User.FindFirst("sub").Value} ({User.FindFirst("name").Value})";

__data.Add(model);
_logger.LogInformation("Add {name}", model.Name);
_logger.LogInformation("Added todo");

return Created(Url.Action(nameof(Get), new { id = model.Id }), model);
}
Expand All @@ -62,7 +62,7 @@ public IActionResult Put(int id, [FromBody] ToDo model)
item.Date = model.Date;
item.Name = model.Name;

_logger.LogInformation("Update {name}", model.Name);
_logger.LogInformation("Updated todo");

return NoContent();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public IActionResult Post([FromBody] ToDo model)
model.User = $"{User.FindFirst("sub").Value} ({User.FindFirst("name").Value})";

__data.Add(model);
_logger.LogInformation("Add {name}", model.Name);
_logger.LogInformation("Added todo");

return Created(Url.Action(nameof(Get), new { id = model.Id }), model);
}
Expand All @@ -60,7 +60,7 @@ public IActionResult Put(int id, [FromBody] ToDo model)
item.Date = model.Date;
item.Name = model.Name;

_logger.LogInformation("Update {name}", model.Name);
_logger.LogInformation("Updated todo");

return NoContent();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public IActionResult Post([FromBody] ToDo model)
model.User = $"{User.FindFirst("sub").Value} ({User.FindFirst("name").Value})";

__data.Add(model);
_logger.LogInformation("Add {name}", model.Name);
_logger.LogInformation("Added todo");

return Created(Url.Action(nameof(Get), new { id = model.Id }), model);
}
Expand All @@ -62,7 +62,7 @@ public IActionResult Put(int id, [FromBody] ToDo model)
item.Date = model.Date;
item.Name = model.Name;

_logger.LogInformation("Update {name}", model.Name);
_logger.LogInformation("Updated todo");

return NoContent();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public IActionResult Post([FromBody] ToDo model)
model.User = $"{User.FindFirst("sub").Value} ({User.FindFirst("name").Value})";

__data.Add(model);
_logger.LogInformation("Add {name}", model.Name);
_logger.LogInformation("Added todo";

Check failure on line 49 in IdentityServer/v7/BFF/JsBffYarpSample/FrontendHost/ToDoController.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

) expected

Check failure on line 49 in IdentityServer/v7/BFF/JsBffYarpSample/FrontendHost/ToDoController.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

) expected

Check failure on line 49 in IdentityServer/v7/BFF/JsBffYarpSample/FrontendHost/ToDoController.cs

View workflow job for this annotation

GitHub Actions / Analyze (javascript)

) expected

Check failure on line 49 in IdentityServer/v7/BFF/JsBffYarpSample/FrontendHost/ToDoController.cs

View workflow job for this annotation

GitHub Actions / Analyze (javascript)

) expected

return Created(Url.Action(nameof(Get), new { id = model.Id }), model);
}
Expand All @@ -60,7 +60,7 @@ public IActionResult Put(int id, [FromBody] ToDo model)
item.Date = model.Date;
item.Name = model.Name;

_logger.LogInformation("Update {name}", model.Name);
_logger.LogInformation("Updated todo");

return NoContent();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public IActionResult Post([FromBody] ToDo model)
model.User = $"{User.FindFirst("sub").Value} ({User.FindFirst("name").Value})";

__data.Add(model);
_logger.LogInformation("Add {name}", model.Name);
_logger.LogInformation("Added todo");

return Created(Url.Action(nameof(Get), new { id = model.Id }), model);
}
Expand All @@ -62,7 +62,7 @@ public IActionResult Put(int id, [FromBody] ToDo model)
item.Date = model.Date;
item.Name = model.Name;

_logger.LogInformation("Update {name}", model.Name);
_logger.LogInformation("Updated todo");

return NoContent();
}
Expand Down

0 comments on commit 00122f3

Please sign in to comment.