Add config option to allow/disallow logging

This commit is contained in:
Amaan Cheval 2018-01-29 16:56:46 +05:30 committed by Fabian
parent 8b62c8c44d
commit 91ee3c4a5f
2 changed files with 6 additions and 1 deletions

View file

@ -67,3 +67,8 @@ var APIC_TIMER_FREQ = TSC_RATE;
/** @const */
var VMWARE_HYPERVISOR_PORT = true;
/** @const
* Whether the coverage logger should be enabled under the appropriate conditions
*/
const COVERAGE_LOGGER_ALLOW = true;

View file

@ -6,7 +6,7 @@ const Buffer = is_env_node && require("buffer")["Buffer"];
/** @constructor */
function CoverageLogger()
{
this.ENABLED = DEBUG && is_env_node;
this.ENABLED = COVERAGE_LOGGER_ALLOW && DEBUG && is_env_node;
if(!this.ENABLED)
{
return;