From 9b0e2f7468ad9ab9a04c3d5ad09f5b9e551310eb Mon Sep 17 00:00:00 2001 From: luboslenco Date: Thu, 5 Nov 2020 12:16:14 +0100 Subject: [PATCH] No traces for snapshot builds --- Sources/arm/Log.hx | 6 +++--- khafile.js | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Sources/arm/Log.hx b/Sources/arm/Log.hx index 0d98970a..7fe68bab 100644 --- a/Sources/arm/Log.hx +++ b/Sources/arm/Log.hx @@ -18,7 +18,7 @@ class Log { if (arm.ui.UIStatus.inst != null) { arm.ui.UIStatus.inst.statusHandle.redraws = 2; } - trace(s); + consoleTrace(s); } public static function error(s: String) { @@ -28,11 +28,11 @@ class Log { if (arm.ui.UIStatus.inst != null) { arm.ui.UIStatus.inst.statusHandle.redraws = 2; } - trace(s); + consoleTrace(s); } public static function trace(s: String) { - trace(s); + consoleTrace(s); } public static function init() { diff --git a/khafile.js b/khafile.js index 1f57c56e..db2c54b2 100644 --- a/khafile.js +++ b/khafile.js @@ -91,6 +91,7 @@ if (vr) { if (snapshot) { project.addDefine("arm_snapshot"); project.addDefine("arm_image_embed"); + project.addParameter("--no-traces"); } project.addAssets("Assets/readme/readme.txt", { notinlist: true, destination: "{name}" });