From 3b4e9004adc2a2bcd39bde7de7f1ee6ed7a0db1c Mon Sep 17 00:00:00 2001 From: Vasilii Shashkov Date: Tue, 29 Jan 2019 11:37:44 +0700 Subject: [PATCH] ability to suppress logging of object changes by setting a global variable --- wwwroot/inc/database.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wwwroot/inc/database.php b/wwwroot/inc/database.php index 23c573156..8818b07ce 100644 --- a/wwwroot/inc/database.php +++ b/wwwroot/inc/database.php @@ -1626,6 +1626,11 @@ function createMolecule ($molData) function recordObjectHistory ($object_id) { global $remote_username; + // $disable_logging_objects can be defined in secrets.php to disable history logger for objects + // same idea as for $disable_logging + global $disable_logging_objects; + if (isset ($disable_logging_objects) && $disable_logging_objects) + return; usePreparedExecuteBlade ( 'INSERT INTO ObjectHistory ' .