1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +00:00

LibJS+js: Disable console debug messages outside Serenity only for js

Previously we would disable console debug messages on all non Serenity
platforms as it caused double printing on lagom `js`. This patch limits
this to the `js` utility, allowing LibWeb to print debug messages
regardless of the operating system :^)
This commit is contained in:
networkException 2022-10-15 22:38:31 +02:00 committed by Ali Mohammad Pur
parent 5e26bb7643
commit afeff4cebb
3 changed files with 4 additions and 4 deletions

View file

@ -1472,7 +1472,9 @@ public:
}
auto output = String::join(' ', arguments.get<JS::MarkedVector<JS::Value>>());
#ifdef AK_OS_SERENITY
m_console.output_debug_message(log_level, output);
#endif
switch (log_level) {
case JS::Console::LogLevel::Debug: