mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 10:40:05 +00:00 
			
		
		
		
	Boost.Log -> spdlog - wsr88d/rpg
This commit is contained in:
		
							parent
							
								
									dda71133e0
								
							
						
					
					
						commit
						766940e60f
					
				
					 39 changed files with 253 additions and 351 deletions
				
			
		|  | @ -1,11 +1,10 @@ | |||
| #include <scwx/wsr88d/rpg/mesocyclone_symbol_packet.hpp> | ||||
| #include <scwx/util/logger.hpp> | ||||
| 
 | ||||
| #include <istream> | ||||
| #include <set> | ||||
| #include <string> | ||||
| 
 | ||||
| #include <boost/log/trivial.hpp> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
| namespace wsr88d | ||||
|  | @ -14,7 +13,8 @@ namespace rpg | |||
| { | ||||
| 
 | ||||
| static const std::string logPrefix_ = | ||||
|    "[scwx::wsr88d::rpg::mesocyclone_symbol_packet] "; | ||||
|    "scwx::wsr88d::rpg::mesocyclone_symbol_packet"; | ||||
| static const auto logger_ = util::Logger::Create(logPrefix_); | ||||
| 
 | ||||
| static const std::set<uint16_t> packetCodes_ = {3, 11}; | ||||
| 
 | ||||
|  | @ -77,8 +77,7 @@ bool MesocycloneSymbolPacket::ParseData(std::istream& is) | |||
| 
 | ||||
|    if (!packetCodes_.contains(packet_code())) | ||||
|    { | ||||
|       BOOST_LOG_TRIVIAL(warning) | ||||
|          << logPrefix_ << "Invalid packet code: " << packet_code(); | ||||
|       logger_->warn("Invalid packet code: {}", packet_code()); | ||||
|       blockValid = false; | ||||
|    } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat