CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Can I stop Drupal logging civimail cron sessions?
Pages: [1]

Author Topic: Can I stop Drupal logging civimail cron sessions?  (Read 1001 times)

David L

  • I post occasionally
  • **
  • Posts: 55
  • Karma: 2
Can I stop Drupal logging civimail cron sessions?
September 17, 2010, 11:30:54 am
My civimail.cronjob.php runs every 15 minutes and CiviMailProcessor.php every 30 minutes. A few weeks ago Drupal started logging every one of these cronjob sessions in Administer > Reports > Recent Log Entries. The log is now being clogged with loads and loads of Session opened for cronuser entries, because every 15 minutes it adds a new instance of it.

This never used to happen. Cronuser sessions never used to appear in the Drupal log. I am not sure if it is a result of my CiviCRM upgrade to 3.2.2 or my Drupal upgrade to the latest version.

Is there a way to stop Drupal logging every cron session? The log is so full of cron entries I need to wade through pages and pages of extra log data when I do my log checkups. Does anyone know a way to stop this (either by exempting the cronuser from being logged, or by exempting the server IP from being logged)?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Can I stop Drupal logging civimail cron sessions?
September 17, 2010, 02:00:20 pm
Check whether "Enable Drupal Watchdog Logging" is set to Yes under CiviCRM > Administer > Configure > Global Settings > Debugging. If it is, try turning it off and see if that helps. (This is a fairly recent addition to CiviCRM and may be what's causing the behavior your seeing.)
Protect your investment in CiviCRM by  becoming a Member!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Can I stop Drupal logging civimail cron sessions?
September 17, 2010, 02:22:11 pm

CiviCRM 3.2 now bootstraps drupal. this allows all scripted jobs to call various hooks. After it bootstraps it logs in, and hence u see the message in watchdog

u'll need to check drupal watchdog docs to see if it can just suppress the cron user messages

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

David L

  • I post occasionally
  • **
  • Posts: 55
  • Karma: 2
Re: Can I stop Drupal logging civimail cron sessions?
September 20, 2010, 12:15:24 pm
For anybody else with this question:

Just noticed that the Drupal log in Admin > Log has a filter, so you can easily filter out the user entries (log-ins, log-outs) etc....

This seems like the easy way to deal with it.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Can I stop Drupal logging civimail cron sessions?

This forum was archived on 2017-11-26.