diff options
author | Justin Clarke Casey | 2009-01-06 21:39:55 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-01-06 21:39:55 +0000 |
commit | a31792ee5cb1ce619f21f5b428926c4709c3f14b (patch) | |
tree | f82a09b918c277741c97fdf4dca85fe1bd8463ac /OpenSim/Region/Environment/Modules/World/Sun | |
parent | * Rename GetRandomCapsPath() to GetRandomCapsObjectPath() to fit in with term... (diff) | |
download | opensim-SC_OLD-a31792ee5cb1ce619f21f5b428926c4709c3f14b.zip opensim-SC_OLD-a31792ee5cb1ce619f21f5b428926c4709c3f14b.tar.gz opensim-SC_OLD-a31792ee5cb1ce619f21f5b428926c4709c3f14b.tar.bz2 opensim-SC_OLD-a31792ee5cb1ce619f21f5b428926c4709c3f14b.tar.xz |
* prune and regrade log messages relating to client login and logout
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs b/OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs index 3f82190..88eabe1 100644 --- a/OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs | |||
@@ -144,22 +144,20 @@ namespace OpenSim.Region.Environment.Modules | |||
144 | //m_log.Debug("[OFFSET]: " + hour + " - " + LindenHour + " - " + offsethours.ToString()); | 144 | //m_log.Debug("[OFFSET]: " + hour + " - " + LindenHour + " - " + offsethours.ToString()); |
145 | 145 | ||
146 | LindenHourOffset = (long)((float)offsethours * (36000000000/m_day_length)); | 146 | LindenHourOffset = (long)((float)offsethours * (36000000000/m_day_length)); |
147 | m_log.Info("[SUN]: Directive from the Estate Tools to set the sun phase to LindenHour " + GetLindenEstateHourFromCurrentTime().ToString()); | 147 | m_log.Debug("[SUN]: Directive from the Estate Tools to set the sun phase to LindenHour " + GetLindenEstateHourFromCurrentTime().ToString()); |
148 | } | 148 | } |
149 | 149 | ||
150 | // Called immediately after the module is loaded for a given region | 150 | // Called immediately after the module is loaded for a given region |
151 | // i.e. Immediately after instance creation. | 151 | // i.e. Immediately after instance creation. |
152 | public void Initialise(Scene scene, IConfigSource config) | 152 | public void Initialise(Scene scene, IConfigSource config) |
153 | { | 153 | { |
154 | m_log.Debug("[SUN] Initializing"); | ||
155 | |||
156 | m_scene = scene; | 154 | m_scene = scene; |
157 | 155 | ||
158 | m_frame = 0; | 156 | m_frame = 0; |
159 | 157 | ||
160 | TimeZone local = TimeZone.CurrentTimeZone; | 158 | TimeZone local = TimeZone.CurrentTimeZone; |
161 | TicksOffset = local.GetUtcOffset(local.ToLocalTime(DateTime.Now)).Ticks; | 159 | TicksOffset = local.GetUtcOffset(local.ToLocalTime(DateTime.Now)).Ticks; |
162 | m_log.Debug("[SUN] localtime offset is " + TicksOffset); | 160 | m_log.Debug("[SUN]: localtime offset is " + TicksOffset); |
163 | 161 | ||
164 | // Align ticks with Second Life | 162 | // Align ticks with Second Life |
165 | 163 | ||
@@ -185,7 +183,7 @@ namespace OpenSim.Region.Environment.Modules | |||
185 | } | 183 | } |
186 | catch (Exception e) | 184 | catch (Exception e) |
187 | { | 185 | { |
188 | m_log.Debug("[SUN] Configuration access failed, using defaults. Reason: "+e.Message); | 186 | m_log.Debug("[SUN]: Configuration access failed, using defaults. Reason: "+e.Message); |
189 | m_mode = d_mode; | 187 | m_mode = d_mode; |
190 | m_year_length = d_year_length; | 188 | m_year_length = d_year_length; |
191 | m_day_length = d_day_length; | 189 | m_day_length = d_day_length; |
@@ -231,10 +229,10 @@ namespace OpenSim.Region.Environment.Modules | |||
231 | 229 | ||
232 | ready = true; | 230 | ready = true; |
233 | 231 | ||
234 | m_log.Debug("[SUN] Mode is "+m_mode); | 232 | m_log.Debug("[SUN]: Mode is "+m_mode); |
235 | m_log.Debug("[SUN] Initialization completed. Day is "+SecondsPerSunCycle+" seconds, and year is "+m_year_length+" days"); | 233 | m_log.Debug("[SUN]: Initialization completed. Day is "+SecondsPerSunCycle+" seconds, and year is "+m_year_length+" days"); |
236 | m_log.Debug("[SUN] Axis offset is "+m_day_night); | 234 | m_log.Debug("[SUN]: Axis offset is "+m_day_night); |
237 | m_log.Debug("[SUN] Positional data updated every "+m_frame_mod+" frames"); | 235 | m_log.Debug("[SUN]: Positional data updated every "+m_frame_mod+" frames"); |
238 | 236 | ||
239 | break; | 237 | break; |
240 | } | 238 | } |
@@ -276,7 +274,6 @@ namespace OpenSim.Region.Environment.Modules | |||
276 | if (!sunFixed) | 274 | if (!sunFixed) |
277 | GenSunPos(); // Generate shared values once | 275 | GenSunPos(); // Generate shared values once |
278 | client.SendSunPos(Position, Velocity, CurrentTime, SecondsPerSunCycle, SecondsPerYear, OrbitalPosition); | 276 | client.SendSunPos(Position, Velocity, CurrentTime, SecondsPerSunCycle, SecondsPerYear, OrbitalPosition); |
279 | m_log.Debug("[SUN] Initial update for new client"); | ||
280 | } | 277 | } |
281 | } | 278 | } |
282 | } | 279 | } |
@@ -383,7 +380,6 @@ namespace OpenSim.Region.Environment.Modules | |||
383 | if (m_rootAgents.ContainsKey(AgentId)) | 380 | if (m_rootAgents.ContainsKey(AgentId)) |
384 | { | 381 | { |
385 | m_rootAgents.Remove(AgentId); | 382 | m_rootAgents.Remove(AgentId); |
386 | m_log.Info("[SUN]: Removing " + AgentId + ". Agent logged out."); | ||
387 | } | 383 | } |
388 | } | 384 | } |
389 | } | 385 | } |