summaryrefslogtreecommitdiffstats
path: root/.cirrus.yml
diff options
context:
space:
mode:
authorSon <leson.phung@gmail.com>2019-03-26 09:19:20 +1100
committerEliza Weisman <eliza@buoyant.io>2019-03-25 15:19:20 -0700
commit1524ee4b60792c7046748ebc4a9db2e687b971d3 (patch)
tree3c00e3281dec77d8abab3f14bc63d2368ff9fbfc /.cirrus.yml
parent7793d637397a0e73096a1df31c777920545e9d1e (diff)
trace: Add static level filtering (#987)
## Motivation `tokio-trace` should have static verbosity level filtering, like the `log` crate. The static max verbosity level should be controlled at compile time with a set of features. It should be possible to set a separate max level for release and debug mode builds. ## Solution We can do this fairly similarly to how the `log` crate does it: `tokio-trace` should export a constant whose value is set based on the static max level feature flags. Then, we add an if statement to the `span!` and `event!` macros which tests if that event or span's level is enabled. Closes #959
Diffstat (limited to '.cirrus.yml')
-rw-r--r--.cirrus.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index d66d5f36..053ce41e 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -32,6 +32,7 @@ task:
test_script:
- . $HOME/.cargo/env
- cargo test --all --no-fail-fast
+ - (cd tokio-trace/test_static_max_level_features && cargo test)
- cargo doc --all
i686_test_script:
- . $HOME/.cargo/env