Skip to content

Commit

Permalink
Refs Elgg#4487. Turning off system log (even more) during upgrades. R…
Browse files Browse the repository at this point in the history
…emoved debug call to system_log() in create_annotation().
  • Loading branch information
brettp committed May 11, 2012
1 parent f5e6386 commit 25b1a1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions engine/lib/annotations.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 25b1a1e

Please sign in to comment.