In Mojolicious::Plugin::DefaultHelpers#og
<https://mojolicious.org/perldoc/Mojolicious/Plugin/DefaultHelpers#log>

I suspect there is a good, fundamental reason behind this decision in the
documents, but I'm not sure what it is.

Why is $log passed to the model method

# Pass logger with context to modelmy $log = $c->log;
$c->some_model->create({foo => $foo}, $log);


Instead of $c->log

# Pass logger with context to model
$c->some_model->create({foo => $foo}, $c->log);

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mojolicious/CACyQ%2BFTSncQ%3D2ff9wf5Q6wOOH0RQp96-LPMbNyv2sGoJNri1eg%40mail.gmail.com.

Reply via email to