Skip to content

Commit

Permalink
Fix debug log not properly showing middleware count
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippMDoerner committed Oct 27, 2023
1 parent 6145c88 commit 8acfab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/snorlogue/modelRoutes.nim
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ proc addCrudRoutes*[T: Model](
## - `beforeUpdateAction` - Gets executed just before updating a model. Note that the model provided is the new model that will replace the old one.
## - `afterUpdateAction` - Gets executed just after updating a model. Note that the model provided is the new model that has replaced the old one.
## - `beforeDeleteAction` - Gets executed just before deleting a model
debug "We got { middlewares.len()} middlewares"
debug fmt"{ middlewares.len()} middlewares were loaded"
static: validateModel[T](T)
const modelMetaData = extractMetaData(urlPrefix, T)
REGISTERED_MODELS.add(modelMetaData)
Expand Down

0 comments on commit 8acfab6

Please sign in to comment.