diff options
author | Justin Clark-Casey (justincc) | 2015-01-16 00:51:37 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2015-01-16 00:54:32 +0000 |
commit | 97ac80d6641d10d602564abbe629fa3b17e2460b (patch) | |
tree | 5d556d0bc9951aee15dc329fb9ab69729e31a230 | |
parent | Fix a recent regression with HG asset posting to other grids where the assets... (diff) | |
download | opensim-SC_OLD-97ac80d6641d10d602564abbe629fa3b17e2460b.zip opensim-SC_OLD-97ac80d6641d10d602564abbe629fa3b17e2460b.tar.gz opensim-SC_OLD-97ac80d6641d10d602564abbe629fa3b17e2460b.tar.bz2 opensim-SC_OLD-97ac80d6641d10d602564abbe629fa3b17e2460b.tar.xz |
minor: Suppress the log messages when user profiles data is requested for an NPC or an HG user with no set server URI to avoid log spam.
Messages concerning failure to contact a given user profiles service are preserved by logging within called code with the agent ID.
If the "No Presence - foreign friend" log message is important then please revert.
Relates to http://opensimulator.org/mantis/view.php?id=7414
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs b/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs index 546a121..48bb2df 100644 --- a/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs | |||
@@ -1059,7 +1059,7 @@ namespace OpenSim.Region.CoreModules.Avatar.UserProfiles | |||
1059 | 1059 | ||
1060 | if (!GetProfileData(ref props, foreign, out result)) | 1060 | if (!GetProfileData(ref props, foreign, out result)) |
1061 | { | 1061 | { |
1062 | m_log.DebugFormat("Error getting profile for {0}: {1}", avatarID, result); | 1062 | // m_log.DebugFormat("Error getting profile for {0}: {1}", avatarID, result); |
1063 | return; | 1063 | return; |
1064 | } | 1064 | } |
1065 | 1065 | ||
@@ -1155,7 +1155,12 @@ namespace OpenSim.Region.CoreModules.Avatar.UserProfiles | |||
1155 | } | 1155 | } |
1156 | catch (Exception e) | 1156 | catch (Exception e) |
1157 | { | 1157 | { |
1158 | m_log.Debug(string.Format("Request using the OpenProfile API to {0} failed", serverURI), e); | 1158 | m_log.Debug( |
1159 | string.Format( | ||
1160 | "[PROFILES]: Request using the OpenProfile API for user {0} to {1} failed", | ||
1161 | properties.UserId, serverURI), | ||
1162 | e); | ||
1163 | |||
1159 | // Allow the return 'message' to say "JsonRpcRequest" and not "OpenProfile", because | 1164 | // Allow the return 'message' to say "JsonRpcRequest" and not "OpenProfile", because |
1160 | // the most likely reason that OpenProfile failed is that the remote server | 1165 | // the most likely reason that OpenProfile failed is that the remote server |
1161 | // doesn't support OpenProfile, and that's not very interesting. | 1166 | // doesn't support OpenProfile, and that's not very interesting. |
@@ -1164,7 +1169,9 @@ namespace OpenSim.Region.CoreModules.Avatar.UserProfiles | |||
1164 | 1169 | ||
1165 | if (!secondChanceSuccess) | 1170 | if (!secondChanceSuccess) |
1166 | { | 1171 | { |
1167 | message = string.Format("JsonRpcRequest to {0} failed", serverURI); | 1172 | message = string.Format("JsonRpcRequest for user {0} to {1} failed", properties.UserId, serverURI); |
1173 | m_log.DebugFormat("[PROFILES]: {0}", message); | ||
1174 | |||
1168 | return false; | 1175 | return false; |
1169 | } | 1176 | } |
1170 | // else, continue below | 1177 | // else, continue below |