mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 13:20:59 +00:00 
			
		
		
		
	Browser+LibWeb: Silence some debug spams
This commit is contained in:
		
							parent
							
								
									e80b887059
								
							
						
					
					
						commit
						652fa54495
					
				
				
				Notes:
				
					sideshowbarker
				
				2024-07-18 07:17:27 +09:00 
				
			
			Author: https://github.com/SeekingBlues
Commit: 652fa54495
Pull-request: https://github.com/SerenityOS/serenity/pull/9248
Reviewed-by: https://github.com/awesomekling
			
					 3 changed files with 9 additions and 9 deletions
				
			
		|  | @ -105,7 +105,7 @@ void ResourceLoader::load(const LoadRequest& request, Function<void(ReadonlyByte | |||
|     } | ||||
| 
 | ||||
|     if (url.protocol() == "about") { | ||||
|         dbgln("Loading about: URL {}", url); | ||||
|         dbgln_if(SPAM_DEBUG, "Loading about: URL {}", url); | ||||
|         deferred_invoke([success_callback = move(success_callback)](auto&) { | ||||
|             success_callback(String::empty().to_byte_buffer(), {}, {}); | ||||
|         }); | ||||
|  | @ -113,7 +113,7 @@ void ResourceLoader::load(const LoadRequest& request, Function<void(ReadonlyByte | |||
|     } | ||||
| 
 | ||||
|     if (url.protocol() == "data") { | ||||
|         dbgln("ResourceLoader loading a data URL with mime-type: '{}', base64={}, payload='{}'", | ||||
|         dbgln_if(SPAM_DEBUG, "ResourceLoader loading a data URL with mime-type: '{}', base64={}, payload='{}'", | ||||
|             url.data_mime_type(), | ||||
|             url.data_payload_is_base64(), | ||||
|             url.data_payload()); | ||||
|  | @ -213,7 +213,7 @@ bool ResourceLoader::is_port_blocked(int port) | |||
| 
 | ||||
| void ResourceLoader::clear_cache() | ||||
| { | ||||
|     dbgln("Clearing {} items from ResourceLoader cache", s_resource_cache.size()); | ||||
|     dbgln_if(CACHE_DEBUG, "Clearing {} items from ResourceLoader cache", s_resource_cache.size()); | ||||
|     s_resource_cache.clear(); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 TheFightingCatfish
						TheFightingCatfish