Skip to content

Commit

Permalink
[TC]: Update TC Server log statements to use the new log macros
Browse files Browse the repository at this point in the history
  • Loading branch information
ad3154 committed Feb 10, 2024
1 parent 8535780 commit 89964c4
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 45 deletions.
4 changes: 2 additions & 2 deletions isobus/src/isobus_device_descriptor_object_pool_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace isobus

if (0 == ddop.size())
{
CANStackLogger::error("[DDOP Helper]: No objects in the pool.");
LOG_ERROR("[DDOP Helper]: No objects in the pool.");
return retVal; // Return empty object
}

Expand Down Expand Up @@ -100,7 +100,7 @@ namespace isobus
return retVal;
}
}
CANStackLogger::error("[DDOP Helper]: No device object in the pool.");
LOG_ERROR("[DDOP Helper]: No device object in the pool.");
return retVal; // If we got here, we didn't find a device object? Return empty object
}

Expand Down
4 changes: 2 additions & 2 deletions isobus/src/isobus_language_command_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ namespace isobus
{
if (languageCode.size() < 2)
{
CANStackLogger::warn("[VT/TC]: Language command interface is being used without a valid language code! Setting \"en\" as default. You should really set this in your app.");
LOG_WARNING("[VT/TC]: Language command interface is being used without a valid language code! Setting \"en\" as default. You should really set this in your app.");
languageCode = "en";
}
if (countryCode.size() < 2)
{
CANStackLogger::warn("[VT/TC]: Language command interface is being used without a valid country code! Setting \"XX\" as default. You should really set this in your app.");
LOG_WARNING("[VT/TC]: Language command interface is being used without a valid country code! Setting \"XX\" as default. You should really set this in your app.");
countryCode = "XX";
}

Expand Down
Loading

0 comments on commit 89964c4

Please sign in to comment.