Commit 7acae66b authored by wangwei's avatar wangwei

支持关闭日志

parent 02b72d3e
......@@ -38,7 +38,7 @@ allprojects {
}
group = "cn.com.duiba.boot"
version = "0.0.58"
version = "0.0.59"
}
subprojects {
......
......@@ -43,6 +43,9 @@ public class SamplerLog {
}
Integer sampling = samplerLog.samplerLogConverter.getSampling(type, value);
sampling = sampling == null ? samplerLog.samplerLogProperties.getDefaultSize() : sampling;
if (sampling == 0) {
return;
}
if (random.nextInt(sampling) == 0) {
LOCAL.set(UUID.randomUUID().toString(true));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment