AK: Use process name on Windows for dbgln()

This commit is contained in:
Andrew Kaster 2024-10-10 21:17:02 -06:00 committed by Andrew Kaster
parent 5e090b359c
commit 90bb8ed33e
Notes: github-actions[bot] 2024-10-11 03:49:38 +00:00

View file

@ -1204,6 +1204,11 @@ void vdbg(StringView fmtstr, TypeErasedFormatParams& params, bool newline)
}
# endif
}
#else
auto process_name = process_name_for_logging();
if (!process_name.is_empty()) {
builder.appendff("{}: ", process_name);
}
#endif
}