diff options
| author | Stefan Boberg <[email protected]> | 2025-09-29 10:00:54 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-09-29 10:00:54 +0200 |
| commit | 9074d8436125e95a56d1547b4b7e6a8dbc79bc40 (patch) | |
| tree | b1afab19eb2e6dfaf3c07079853cfc3830f8e614 /src/zenhttp-test/zenhttp-test.cpp | |
| parent | 5.7.2 (diff) | |
| download | zen-9074d8436125e95a56d1547b4b7e6a8dbc79bc40.tar.xz zen-9074d8436125e95a56d1547b4b7e6a8dbc79bc40.zip | |
make sure trace is configured for all test drivers (#523)
Diffstat (limited to 'src/zenhttp-test/zenhttp-test.cpp')
| -rw-r--r-- | src/zenhttp-test/zenhttp-test.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/zenhttp-test/zenhttp-test.cpp b/src/zenhttp-test/zenhttp-test.cpp index 116971b02..d18b2167e 100644 --- a/src/zenhttp-test/zenhttp-test.cpp +++ b/src/zenhttp-test/zenhttp-test.cpp @@ -22,7 +22,15 @@ main([[maybe_unused]] int argc, [[maybe_unused]] char* argv[]) zen::IgnoreChildSignals(); # endif +# if ZEN_WITH_TRACE zen::TraceInit("zenhttp-test"); + zen::TraceOptions TraceCommandlineOptions; + if (GetTraceOptionsFromCommandline(TraceCommandlineOptions)) + { + TraceConfigure(TraceCommandlineOptions); + } +# endif // ZEN_WITH_TRACE + zen::logging::InitializeLogging(); zen::MaximizeOpenFileCount(); |