mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
LibWeb: Make debug logging of resource load errors red instead of green
Red is a bit more suspicious than green, after all. :^)
This commit is contained in:
parent
d7b27a9901
commit
378bca8b0c
Notes:
sideshowbarker
2024-07-17 19:49:24 +09:00
Author: https://github.com/awesomekling
Commit: 378bca8b0c
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ void ResourceLoader::load(LoadRequest& request, Function<void(ReadonlyBytes, con
|
|||
const auto log_failure = [](const auto& request, const auto error_message) {
|
||||
auto& url = request.url();
|
||||
auto load_time_ms = request.load_time().to_milliseconds();
|
||||
dbgln("ResourceLoader: Failed load of: \"{}\", \033[32;1mError: {}\033[0m, Duration: {}ms", sanitized_url_for_logging(url), error_message, load_time_ms);
|
||||
dbgln("ResourceLoader: Failed load of: \"{}\", \033[31;1mError: {}\033[0m, Duration: {}ms", sanitized_url_for_logging(url), error_message, load_time_ms);
|
||||
};
|
||||
|
||||
if (is_port_blocked(url.port_or_default())) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue