Merge branch 'etc/logging' into 'main'
Logging for flow of the data exchange between client/server Closes #37 See merge request cse1105/2025-2026/teams/csep-team-76!42
This commit is contained in:
commit
1c9ffb9d13
12 changed files with 85 additions and 22 deletions
|
|
@ -103,6 +103,14 @@ public class Ingredient {
|
|||
public int hashCode() {
|
||||
return Objects.hash(id, name, proteinPer100g, fatPer100g, carbsPer100g);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Ingredient " + id + " - " + name +
|
||||
"= P:" + proteinPer100g +
|
||||
"/F:" + fatPer100g +
|
||||
"/C:" + carbsPer100g + " per 100g";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -158,12 +158,10 @@ public class Recipe {
|
|||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Recipe{" +
|
||||
"id=" + id +
|
||||
", name='" + name + '\'' +
|
||||
", ingredientsCount=" + ingredients.size() +
|
||||
", preparationStepsCount=" + preparationSteps.size() +
|
||||
"}";
|
||||
return "Recipe " + id +
|
||||
" - " + name +
|
||||
": " + ingredients.size() + " ingredients / " +
|
||||
preparationSteps.size() + " steps";
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue