Jump to content

Make logs in module cron


NETIM

Recommended Posts

We have developped our domain registrar module and we are facing an issue when using the module cron function.

in the function cron(), we are unable to write logs by using the regular $this->log() function. We assume there is no error but nothing is written.
We get only this
Attempting module cron for netim netim_async.
Finished module cron for netim netim_async. 

The turnaround is to throw an exception l
throw new Exception(".....");
In such case , our content is written but the backtrace also.

This is not a big issue, the turnaround works but it is not a proper solution.

Is it an issue with module crons ?
Is there a better way to write logs in module cron() function ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...