I don't believe there would be any difference. -Dan
On Thu, Apr 9, 2020 at 6:13 PM Stefan Adams <s1037...@gmail.com> wrote: > 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 mojolicious+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/mojolicious/CACyQ%2BFTSncQ%3D2ff9wf5Q6wOOH0RQp96-LPMbNyv2sGoJNri1eg%40mail.gmail.com > <https://groups.google.com/d/msgid/mojolicious/CACyQ%2BFTSncQ%3D2ff9wf5Q6wOOH0RQp96-LPMbNyv2sGoJNri1eg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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 mojolicious+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mojolicious/CABMkAVV%2BOE7OERWzmc0-h7OhobvAteKqVAhWQJkK1kxyQY8ZqA%40mail.gmail.com.