aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/trace.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zencore/trace.cpp')
-rw-r--r--src/zencore/trace.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/zencore/trace.cpp b/src/zencore/trace.cpp
index 6e2eea1c7..2dec0511c 100644
--- a/src/zencore/trace.cpp
+++ b/src/zencore/trace.cpp
@@ -55,7 +55,7 @@ TraceConfigure(const TraceOptions& Options)
auto ProcessTraceArg = [&](const std::string_view& Arg) {
if (Arg == "default"sv)
{
- ProcessChannelList("cpu,log"sv);
+ ProcessChannelList("cpu,zenlog"sv);
}
else if (Arg == "memory"sv)
{
@@ -70,6 +70,12 @@ TraceConfigure(const TraceOptions& Options)
// memtag actually traces to the memalloc channel
ProcessChannelList("memalloc"sv);
}
+ else if (Arg == "log"sv)
+ {
+ // Upstream UE trace reserves "log" for printf-style Logging.* events, which zen
+ // does not emit. Redirect to the zenlog channel so --trace=log does what users expect.
+ ProcessChannelList("zenlog"sv);
+ }
else
{
// Presume that the argument is a trace channel name