From 655c9348dec2e90fe724fe9b22b5f15356eadd5e Mon Sep 17 00:00:00 2001 From: Shyotl Date: Tue, 12 Feb 2013 14:53:56 -0600 Subject: [PATCH] Minor adjsutment to llcontrolgroup. Demote non-critical failure from llerrs to llwarns. --- indra/llxml/llcontrol.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/indra/llxml/llcontrol.h b/indra/llxml/llcontrol.h index 18861cb23..2816918a8 100644 --- a/indra/llxml/llcontrol.h +++ b/indra/llxml/llcontrol.h @@ -99,8 +99,10 @@ typedef enum e_control_type class LLControlVariable : public LLRefCount { - friend class LLControlGroup; + LOG_CLASS(LLControlVariable); + friend class LLControlGroup; + public: typedef boost::signals2::signal validate_signal_t; typedef boost::signals2::signal commit_signal_t; @@ -208,6 +210,7 @@ T convert_from_llsd(const LLSD& sd, eControlType type, const std::string& contro //const U32 STRING_CACHE_SIZE = 10000; class LLControlGroup : public LLInstanceTracker { + LOG_CLASS(LLControlGroup); protected: typedef std::map ctrl_name_table_t; ctrl_name_table_t mNameTable; @@ -283,6 +286,7 @@ public: else { llwarns << "Control " << name << " not found." << llendl; + return T(); } return convert_from_llsd(value, type, name); } @@ -313,7 +317,7 @@ public: } else { - llerrs << "Invalid control " << name << llendl; + llwarns << "Invalid control " << name << llendl; } }