From 820c3b7674727e5be30a9c57afbe16a0ea27e6ea Mon Sep 17 00:00:00 2001 From: Simon Zeltser Date: Thu, 21 Jan 2021 14:08:03 -0800 Subject: [PATCH] chore: update synth.py to exclude bot configs (#300) Exclude blunderbuss and codeowners from autosynth. Fixes #299 --- .../cloud/logging/logback/TraceLoggingEventEnhancer.java | 1 + synth.py | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/google/cloud/logging/logback/TraceLoggingEventEnhancer.java b/src/main/java/com/google/cloud/logging/logback/TraceLoggingEventEnhancer.java index aad688f9c..5fcd02a44 100644 --- a/src/main/java/com/google/cloud/logging/logback/TraceLoggingEventEnhancer.java +++ b/src/main/java/com/google/cloud/logging/logback/TraceLoggingEventEnhancer.java @@ -39,6 +39,7 @@ public static void setCurrentTraceId(String id) { public static void clearTraceId() { MDC.remove(TRACE_ID); } + /** * Get the Trace ID associated with any logging done by the current thread. * diff --git a/synth.py b/synth.py index 322c9d59d..7af89807b 100644 --- a/synth.py +++ b/synth.py @@ -18,4 +18,9 @@ AUTOSYNTH_MULTIPLE_COMMITS = True -java.common_templates() +java.common_templates(excludes=[ + '.gitignore', + '.github/CODEOWNERS', + '.github/blunderbuss.yml', + 'CONTRIBUTING.md', +]) \ No newline at end of file