]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #4487. Turning off system log (even more) during upgrades. Removed debug call...
authorBrett Profitt <brett.profitt@gmail.com>
Fri, 11 May 2012 02:45:00 +0000 (19:45 -0700)
committerBrett Profitt <brett.profitt@gmail.com>
Fri, 11 May 2012 02:45:00 +0000 (19:45 -0700)
engine/lib/annotations.php
upgrade.php

index f32dee0f08b98840589e82012bb3d1a61ecc8820..7383f5e043d100c244b610d9d0201b285241d41a 100644 (file)
@@ -95,8 +95,6 @@ $owner_guid = 0, $access_id = ACCESS_PRIVATE) {
        $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
index 6f7126326f5e9329bb76589a88d6fc251ed96c9b..9635232005cca9812d45539042959330bb98ee6c 100644 (file)
@@ -20,7 +20,8 @@ define('UPGRADING', 'upgrading');
 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()) {