Add symbols back to the build to fix Dynatrace support (#20294)

This commit is contained in:
Christopher Swenson 2023-04-21 10:15:56 -07:00 committed by GitHub
parent bebe6dcaa0
commit 1415d47da8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

3
changelog/20294.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:improvement
Add debug symbols back to builds to fix Dynatrace support
```

View File

@ -159,9 +159,10 @@ function build() {
# Build our ldflags
msg="--> Building Vault v$version, revision $revision, built $build_date"
# Strip the symbol and dwarf information by default
# Keep the symbol and dwarf information by default
# TODO: maybe add REMOVE_SYMBOLS?
if [ -n "$KEEP_SYMBOLS" ]; then
ldflags=""
ldflags="-s -w "
else
ldflags="-s -w "
fi