refactor: export trace_to_json_file in zip api
This commit is contained in:
parent
a51c6c51fa
commit
639999f37e
1 changed files with 4 additions and 0 deletions
|
|
@ -444,6 +444,10 @@ pub const env = struct {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub fn trace_to_json_file(path: [*:0]const u8) void {
|
||||||
|
c.thespian_trace_to_json_file(path);
|
||||||
|
}
|
||||||
|
|
||||||
pub fn trace(chan: trace_channel, value: anytype) void {
|
pub fn trace(chan: trace_channel, value: anytype) void {
|
||||||
if (env.get().enabled(chan)) {
|
if (env.get().enabled(chan)) {
|
||||||
if (@TypeOf(value) == message) {
|
if (@TypeOf(value) == message) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue