mirror of
				https://github.com/lightpanda-io/browser.git
				synced 2025-10-30 15:41:48 +00:00 
			
		
		
		
	Improve logging
1 - Make log_level a runtime option (not a build-time) 2 - Make log_format a runtime option 3 - In Debug mode, allow for log scope filtering Improve the general usability of scopes. Previously, the scope was more or less based on the file that the log was in. Now they are more logically grouped. Consider the case where you want to silence HTTP request information, previously you'd have to filter out the `page`, `xhr` and `http_client` scopes, but that would also elimiate other page, xhr and http_client logs. Now, you can just filter out the `http` scope.
This commit is contained in:
		| @@ -647,7 +647,7 @@ pub const Request = struct { | ||||
|             // to a GET. | ||||
|             self.method = .GET; | ||||
|         } | ||||
|         log.debug(.http_client, "redirecting", .{ .method = self.method, .url = self.request_uri }); | ||||
|         log.debug(.http, "redirecting", .{ .method = self.method, .url = self.request_uri }); | ||||
|  | ||||
|         if (self.body != null and self.method == .GET) { | ||||
|             // If we have a body and the method is a GET, then we must be following | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Karl Seguin
					Karl Seguin