Browse files

Refs #4487. Turning off system log (even more) during upgrades. Remov…

…ed debug call to system_log() in create_annotation().
  • Loading branch information...
1 parent f5e6386 commit 25b1a1ea11182b6fc195f4cca76ec4788d79c65e @brettp brettp committed May 11, 2012
Showing with 2 additions and 3 deletions.
  1. +0 −2 engine/lib/annotations.php
  2. +2 −1 upgrade.php
View
2 engine/lib/annotations.php
@@ -95,8 +95,6 @@ function create_annotation($entity_guid, $name, $value, $value_type = '',
$entity = get_entity($entity_guid);
if (elgg_trigger_event('annotate', $entity->type, $entity)) {
- system_log($entity, 'annotate');
-
// If ok then add it
$result = insert_data("INSERT into {$CONFIG->dbprefix}annotations
(entity_guid, name_id, value_id, value_type, owner_guid, time_created, access_id) VALUES
View
3 upgrade.php
@@ -20,7 +20,8 @@
require_once(dirname(__FILE__) . "/engine/start.php");
if (get_input('upgrade') == 'upgrade') {
- // disable the core system log for upgrades to avoid exceptions when the schema changes.
+ // disable the system log for upgrades to avoid exceptions when the schema changes.
+ elgg_unregister_event_handler('log', 'systemlog', 'system_log_default_logger');
elgg_unregister_event_handler('all', 'all', 'system_log_listener');
if (elgg_get_unprocessed_upgrades()) {

0 comments on commit 25b1a1e

Please sign in to comment.