Commit 7acae66b authored by wangwei's avatar wangwei

支持关闭日志

parent 02b72d3e
...@@ -38,7 +38,7 @@ allprojects { ...@@ -38,7 +38,7 @@ allprojects {
} }
group = "cn.com.duiba.boot" group = "cn.com.duiba.boot"
version = "0.0.58" version = "0.0.59"
} }
subprojects { subprojects {
......
...@@ -43,6 +43,9 @@ public class SamplerLog { ...@@ -43,6 +43,9 @@ public class SamplerLog {
} }
Integer sampling = samplerLog.samplerLogConverter.getSampling(type, value); Integer sampling = samplerLog.samplerLogConverter.getSampling(type, value);
sampling = sampling == null ? samplerLog.samplerLogProperties.getDefaultSize() : sampling; sampling = sampling == null ? samplerLog.samplerLogProperties.getDefaultSize() : sampling;
if (sampling == 0) {
return;
}
if (random.nextInt(sampling) == 0) { if (random.nextInt(sampling) == 0) {
LOCAL.set(UUID.randomUUID().toString(true)); 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