In mongodb_watchdog_watchdog account object can be null according to http://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/watch... so instead of using account to find uid just use uid set by watchdog() as dblog_watchdog does.

Files: 
CommentFileSizeAuthor
mongodb_watchdog_uid.patch808 bytesRok Žlender
Test request sent.
[ View ]

Comments

marcingy’s picture

Status:Needs review» Reviewed & tested by the community
Rok Žlender’s picture

Status:Reviewed & tested by the community» Fixed

Thanks for the review Marc. Committed to 7.x-1.x.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.