mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 02:20:27 +00:00
refactor(Core/Logging): switch to fmt style for LOG_ (#10366)
* feat(Core/Common): add support fmt style for ASSERT and ABORT * correct CheckCompactArrayMaskOverflow * 1 * Update src/server/game/Spells/Spell.cpp * rework logging * add fmt replace logs * logging * FMT_LOG_ * settings * fix startup * 1 * 2 * 3 * 4 * 5 * fmt::print * to fmt
This commit is contained in:
@@ -34,7 +34,7 @@ Weather::Weather(uint32 zone, WeatherData const* weatherChances)
|
||||
m_type = WEATHER_TYPE_FINE;
|
||||
m_grade = 0;
|
||||
|
||||
LOG_DEBUG("weather", "WORLD: Starting weather system for zone %u (change every %u minutes).", m_zone, (uint32)(m_timer.GetInterval() / (MINUTE * IN_MILLISECONDS)));
|
||||
LOG_DEBUG("weather", "WORLD: Starting weather system for zone {} (change every {} minutes).", m_zone, (uint32)(m_timer.GetInterval() / (MINUTE * IN_MILLISECONDS)));
|
||||
}
|
||||
|
||||
/// Launch a weather update
|
||||
@@ -91,7 +91,7 @@ bool Weather::ReGenerate()
|
||||
uint32 season = ((Acore::Time::GetDayInYear() - 78 + 365) / 91) % 4;
|
||||
|
||||
static char const* seasonName[WEATHER_SEASONS] = { "spring", "summer", "fall", "winter" };
|
||||
LOG_DEBUG("weather", "Generating a change in %s weather for zone %u.", seasonName[season], m_zone);
|
||||
LOG_DEBUG("weather", "Generating a change in {} weather for zone {}.", seasonName[season], m_zone);
|
||||
|
||||
if ((u < 60) && (m_grade < 0.33333334f)) // Get fair
|
||||
{
|
||||
@@ -252,7 +252,7 @@ bool Weather::UpdateWeather()
|
||||
break;
|
||||
}
|
||||
|
||||
LOG_DEBUG("weather", "Change the weather of zone %u to %s.", m_zone, wthstr);
|
||||
LOG_DEBUG("weather", "Change the weather of zone {} to {}.", m_zone, wthstr);
|
||||
sScriptMgr->OnWeatherChange(this, state, m_grade);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user