From ae458d0421afb5ae913ebae6110e39fccb9b3adb Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Wed, 17 Jul 2024 09:54:57 -0700 Subject: [PATCH] Decrease error severity for Altium imports These are not errors that end users can do anything about. Keep them around for developer debugging if we want to see more imformation but don't pop up error messages on the user's screen --- common/io/altium/altium_binary_parser.cpp | 2 +- common/io/altium/altium_props_utils.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/io/altium/altium_binary_parser.cpp b/common/io/altium/altium_binary_parser.cpp index bac282e7eb..352b925b1c 100644 --- a/common/io/altium/altium_binary_parser.cpp +++ b/common/io/altium/altium_binary_parser.cpp @@ -361,7 +361,7 @@ std::map ALTIUM_BINARY_PARSER::ReadProperties( if( !hasNullByte && !isBinary ) { - wxLogError( _( "Missing null byte at end of property list. Imported data might be " + wxLogTrace( "ALTIUM", wxT( "Missing null byte at end of property list. Imported data might be " "malformed or missing." ) ); } diff --git a/common/io/altium/altium_props_utils.cpp b/common/io/altium/altium_props_utils.cpp index 7c6d6ed8a6..a93c0227d9 100644 --- a/common/io/altium/altium_props_utils.cpp +++ b/common/io/altium/altium_props_utils.cpp @@ -93,7 +93,7 @@ int32_t ALTIUM_PROPS_UTILS::ReadKicadUnit( const std::map& a if( !value.EndsWith( "mil", &prefix ) ) { - wxLogError( _( "Unit '%s' does not end with 'mil'." ), value ); + wxLogTrace( "ALTIUM", wxT( "Unit '%s' does not end with 'mil'." ), value ); return 0; } @@ -103,7 +103,7 @@ int32_t ALTIUM_PROPS_UTILS::ReadKicadUnit( const std::map& a if( !prefix.ToCDouble( &mils ) ) { - wxLogError( _( "Cannot convert '%s' to double." ), prefix ); + wxLogTrace( "ALTIUM", wxT( "Cannot convert '%s' to double." ), prefix ); return 0; }