From b5e2f9aa0a7337d9bb1d5cc4e57bb472b112a5c1 Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Fri, 22 Sep 2023 17:29:05 -0700 Subject: [PATCH] AP_Scripting: change some _INFO msgs to _CRITICAL/ERROR --- libraries/AP_Scripting/AP_Scripting.cpp | 2 +- libraries/AP_Scripting/lua_scripts.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/AP_Scripting/AP_Scripting.cpp b/libraries/AP_Scripting/AP_Scripting.cpp index a31ba85f86..2c9dd332e7 100644 --- a/libraries/AP_Scripting/AP_Scripting.cpp +++ b/libraries/AP_Scripting/AP_Scripting.cpp @@ -317,7 +317,7 @@ void AP_Scripting::handle_mission_command(const AP_Mission::Mission_Command& cmd mission_data = nullptr; } if (mission_data == nullptr) { - GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Scripting: %s", "unable to receive mission command"); + GCS_SEND_TEXT(MAV_SEVERITY_ERROR, "Scripting: %s", "unable to receive mission command"); return; } } diff --git a/libraries/AP_Scripting/lua_scripts.cpp b/libraries/AP_Scripting/lua_scripts.cpp index e4a7568e4c..94850cb69d 100644 --- a/libraries/AP_Scripting/lua_scripts.cpp +++ b/libraries/AP_Scripting/lua_scripts.cpp @@ -240,7 +240,7 @@ void lua_scripts::load_all_scripts_in_dir(lua_State *L, const char *dirname) { auto *d = AP::FS().opendir(dirname); if (d == nullptr) { - GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Lua: open directory (%s) failed", dirname); + GCS_SEND_TEXT(MAV_SEVERITY_WARNING, "Lua: open directory (%s) failed", dirname); return; } @@ -317,7 +317,7 @@ void lua_scripts::run_next_script(lua_State *L) { // script has consumed an excessive amount of CPU time set_and_print_new_error_message(MAV_SEVERITY_CRITICAL, "%s exceeded time limit", script->name); } else { - set_and_print_new_error_message(MAV_SEVERITY_INFO, "%s", lua_tostring(L, -1)); + set_and_print_new_error_message(MAV_SEVERITY_CRITICAL, "%s", lua_tostring(L, -1)); } remove_script(L, script); lua_pop(L, 1); @@ -452,7 +452,7 @@ void lua_scripts::run(void) { bool succeeded_initial_load = false; if (!_heap.available()) { - GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Lua: Unable to allocate a heap"); + GCS_SEND_TEXT(MAV_SEVERITY_CRITICAL, "Lua: Unable to allocate a heap"); return; }