Closed (fixed)
Project:
Monolog
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 May 2013 at 17:31 UTC
Updated:
3 Jun 2013 at 16:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
cpliakas commentedMore specificall, since Drupal sets the "bootstrap" flag to 1 in the system table for monolog_logging, it is loaded in the DRUPAL_BOOTSTRAP_VARIABLES bootstrap phase whereas the monolog module is loaded in the DRUPAL_BOOTSTRAP_FULL phase. We have a few options.
monolog()function is not available.monolog()function is unavailable().Comment #2
cpliakas commentedTo simulate this error, hack core and throw a watchdog() call in drupal_bootstrap() during the DRUPAL_BOOTSTRAP_SESSION phase.
Comment #3
cpliakas commentedPushing forward with solution #3 since we probably don't want to do a full Drupal bootstrap, and if something is logged early in the bootstrap phase then we probably don't want to silently ignore it either.
The attached patch adds a partial bootstrap process that loads the minimum subsystems and modules required for Monolog logging.
Comment #4
cpliakas commentedCommitted at http://drupalcode.org/project/monolog.git/commit/958e375.
Comment #5.0
(not verified) commentedUpdated issue summary.