diff options
Diffstat (limited to 'indra')
| -rwxr-xr-x | indra/newview/llappearancemgr.cpp | 18 | ||||
| -rwxr-xr-x | indra/newview/llinventorymodel.cpp | 5 | ||||
| -rwxr-xr-x | indra/newview/llvoavatar.cpp | 9 | ||||
| -rwxr-xr-x | indra/newview/llvoavatar.h | 1 | 
4 files changed, 20 insertions, 13 deletions
| diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp index 0c09689a70..646b2d18dd 100755 --- a/indra/newview/llappearancemgr.cpp +++ b/indra/newview/llappearancemgr.cpp @@ -1797,7 +1797,10 @@ void LLAppearanceMgr::updateCOF(const LLUUID& category, bool append)  		base_contents["type"] = LLAssetType::AT_LINK_FOLDER;   		contents.append(base_contents);  	} -	llinfos << "slamming to: " << ll_pretty_print_sd(contents) << llendl; +	if (gSavedSettings.getBOOL("DebugAvatarAppearanceMessage")) +	{ +		dump_sequential_xml(gAgentAvatarp->getFullname() + "_slam_request", contents); +	}  	slam_inventory_folder(getCOF(), contents, link_waiter);  #endif @@ -2950,7 +2953,7 @@ protected:  			//LL_DEBUGS("Avatar") << dumpResponse() << LL_ENDL;  			if (gSavedSettings.getBOOL("DebugAvatarAppearanceMessage"))  			{ -				dumpContents(gAgentAvatarp->getFullname() + "_appearance_request_ok", content); +				dump_sequential_xml(gAgentAvatarp->getFullname() + "_appearance_request_ok", content);  			}  		}  		else @@ -2968,7 +2971,7 @@ protected:  		if (gSavedSettings.getBOOL("DebugAvatarAppearanceMessage"))  		{  			const LLSD& content = getContent(); -			dumpContents(gAgentAvatarp->getFullname() + "_appearance_request_error", content); +			dump_sequential_xml(gAgentAvatarp->getFullname() + "_appearance_request_error", content);  			debugCOF(content);  		}  		onFailure(); @@ -2992,15 +2995,6 @@ protected:  		}  	}	 -	void dumpContents(const std::string outprefix, const LLSD& content) -	{ -		std::string outfilename = get_sequential_numbered_file_name(outprefix,".xml"); -		std::string fullpath = gDirUtilp->getExpandedFilename(LL_PATH_LOGS,outfilename); -		std::ofstream ofs(fullpath.c_str(), std::ios_base::out); -		ofs << LLSDOStreamer<LLSDXMLFormatter>(content, LLSDFormatter::OPTIONS_PRETTY); -		LL_DEBUGS("Avatar") << "results saved to: " << fullpath << LL_ENDL; -	} -  	void debugCOF(const LLSD& content)  	{  		LL_INFOS("Avatar") << "AIS COF, version received: " << content["expected"].asInteger() diff --git a/indra/newview/llinventorymodel.cpp b/indra/newview/llinventorymodel.cpp index 1a5e76183c..c0c48d6695 100755 --- a/indra/newview/llinventorymodel.cpp +++ b/indra/newview/llinventorymodel.cpp @@ -1170,7 +1170,10 @@ void parse_llsd_uuid_array(const LLSD& content, const std::string& name, uuid_ve  void LLInventoryModel::onAISUpdateReceived(const std::string& context, const LLSD& update)  { -	LL_DEBUGS("Inventory") << "ais update " << context << ":" << ll_pretty_print_sd(update) << llendl; +	if (gSavedSettings.getBOOL("DebugAvatarAppearanceMessage")) +	{ +		dump_sequential_xml(gAgentAvatarp->getFullname() + "_ais_update", update); +	}  	// Track changes to descendent counts for accounting.  	std::map<LLUUID,S32> cat_deltas; diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 2cbdf93eeb..1dbcabf2b3 100755 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -7416,6 +7416,15 @@ std::string get_sequential_numbered_file_name(const std::string& prefix,  	return outfilename;  } +void dump_sequential_xml(const std::string outprefix, const LLSD& content) +{ +	std::string outfilename = get_sequential_numbered_file_name(outprefix,".xml"); +	std::string fullpath = gDirUtilp->getExpandedFilename(LL_PATH_LOGS,outfilename); +	std::ofstream ofs(fullpath.c_str(), std::ios_base::out); +	ofs << LLSDOStreamer<LLSDXMLFormatter>(content, LLSDFormatter::OPTIONS_PRETTY); +	LL_DEBUGS("Avatar") << "results saved to: " << fullpath << LL_ENDL; +} +  void LLVOAvatar::dumpArchetypeXML(const std::string& prefix, bool group_by_wearables )  {  	std::string outprefix(prefix); diff --git a/indra/newview/llvoavatar.h b/indra/newview/llvoavatar.h index 19ad49d3a1..fad2fd962c 100755 --- a/indra/newview/llvoavatar.h +++ b/indra/newview/llvoavatar.h @@ -998,6 +998,7 @@ extern const S32 MAX_TEXTURE_VIRTUAL_SIZE_RESET_INTERVAL;  std::string get_sequential_numbered_file_name(const std::string& prefix,  											  const std::string& suffix); +void dump_sequential_xml(const std::string outprefix, const LLSD& content);  void dump_visual_param(apr_file_t* file, LLVisualParam* viewer_param, F32 value);  #endif // LL_VOAVATAR_H | 
