Skip to content

Commit d44e48a

Browse files
authored
[monodroid] Downgrade some typemap message severity (#4831)
Fixes: #4791 Context: 755a521 The following kind of messages were printed as *warning* messages, meaning they were *always* printed, and apparently printed often: monodroid-assembly typemap: module matching MVID […] not found. monodroid-assembly typemap: managed type '…' (mapped from Java type '…') could not be loaded As with commit 755a521, reduce the importance of these messages from *warning* messages to *informational* messages, via `log_info()`.
1 parent 3dcac85 commit d44e48a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/monodroid/jni/embedded-assemblies.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ EmbeddedAssemblies::typemap_java_to_managed (const char *java_type_name)
295295

296296
MonoType *type = mono_reflection_type_from_name (const_cast<char*>(managed_type_name), nullptr);
297297
if (XA_UNLIKELY (type == nullptr)) {
298-
log_warn (LOG_ASSEMBLY, "typemap: managed type '%s' (mapped from Java type '%s') could not be loaded", managed_type_name, java_type_name);
298+
log_info (LOG_ASSEMBLY, "typemap: managed type '%s' (mapped from Java type '%s') could not be loaded", managed_type_name, java_type_name);
299299
return nullptr;
300300
}
301301

@@ -505,7 +505,7 @@ EmbeddedAssemblies::typemap_managed_to_java ([[maybe_unused]] MonoType *type, Mo
505505

506506
const TypeMapModule *match = binary_search<uint8_t, TypeMapModule, compare_mvid> (mvid, map, map_entry_count);
507507
if (match == nullptr) {
508-
log_warn (LOG_ASSEMBLY, "typemap: module matching MVID [%s] not found.", MonoGuidString (mvid).get ());
508+
log_info (LOG_ASSEMBLY, "typemap: module matching MVID [%s] not found.", MonoGuidString (mvid).get ());
509509
return nullptr;
510510
}
511511

0 commit comments

Comments
 (0)