Skip to content

Commit 6655aca

Browse files
committed
chore: cleanup
1 parent 4900f98 commit 6655aca

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

NativeScript/runtime/SymbolLoader.mm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ virtual bool load() override {
4343
CFErrorRef error = nullptr;
4444
bool loaded = CFBundleLoadExecutableAndReturnError(this->_bundle, &error);
4545
if (error) {
46-
NSLog(@"%s", [[(NSError*)error localizedDescription] UTF8String]);
46+
os_log_error(ns_symbolloader_log(), "%{public}s", [[(NSError*)error localizedDescription] UTF8String]);
4747
}
4848

4949
return loaded;
@@ -109,7 +109,7 @@ virtual bool load() override {
109109
if (CFBundleRef bundle = CFBundleCreate(kCFAllocatorDefault, (CFURLRef)bundleUrl)) {
110110
resolver = std::make_unique<CFBundleSymbolResolver>(bundle);
111111
} else {
112-
os_log_error(ns_symbolloader_log(), "NativeScript could not load bundle %{public}s", bundleUrl.absoluteString.UTF8String);
112+
os_log_debug(ns_symbolloader_log(), "NativeScript could not load bundle %{public}s", bundleUrl.absoluteString.UTF8String);
113113
}
114114
} else if (module->libraries->count == 1) {
115115
if (module->isSystem()) {
@@ -118,10 +118,10 @@ virtual bool load() override {
118118
NSString* libraryPath = [NSString stringWithFormat:@"%@/lib%s.dylib", libsPath, module->libraries->first()->value().getName()];
119119

120120
if (void* library = dlopen(libraryPath.UTF8String, RTLD_LAZY | RTLD_LOCAL)) {
121-
os_log_info(ns_symbolloader_log(), "NativeScript loaded library %{public}s", libraryPath.UTF8String);
121+
os_log_debug(ns_symbolloader_log(), "NativeScript loaded library %{public}s", libraryPath.UTF8String);
122122
resolver = std::make_unique<DlSymbolResolver>(library);
123123
} else if (const char* libraryError = dlerror()) {
124-
os_log_error(ns_symbolloader_log(), "NativeScript could not load library %{public}s, error: %{public}s", libraryPath.UTF8String, libraryError);
124+
os_log_debug(ns_symbolloader_log(), "NativeScript could not load library %{public}s, error: %{public}s", libraryPath.UTF8String, libraryError);
125125
}
126126
}
127127
}

0 commit comments

Comments
 (0)