Skip to content

Commit 51ae7ca

Browse files
committed
chore: log cleanup
1 parent 5e391ab commit 51ae7ca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

NativeScript/runtime/ModuleInternalCallbacks.mm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,8 +728,9 @@ static bool IsDocumentsPath(const std::string& path) {
728728
// the HTTP dev loader and return before any filesystem candidate logic runs.
729729
if (StartsWith(spec, "http://") || StartsWith(spec, "https://")) {
730730
std::string key = CanonicalizeHttpUrlKey(spec);
731-
// Added instrumentation for unified phase logging
732-
Log(@"[http-esm][compile][begin] %s", key.c_str());
731+
if (IsScriptLoadingLogEnabled()) {
732+
Log(@"[http-esm][compile][begin] %s", key.c_str());
733+
}
733734
// Reuse compiled module if present and healthy
734735
auto itExisting = g_moduleRegistry.find(key);
735736
if (itExisting != g_moduleRegistry.end()) {

0 commit comments

Comments
 (0)