From 28791f317b84cb61d72480046754dfcc17d6706e Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Wed, 24 Nov 2021 18:37:04 +0100 Subject: [PATCH] update gitignore improve error logging to slack fix regression in dev builds --- .gitignore | 4 ++++ manager/s3_storage.go | 6 +++--- util/log_wrapper.go | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 5d95aa7..4949f71 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,7 @@ e2e/supporty/supporty .env blobsfiles ytsync_docker + +e2e/config.json + +e2e/cookies.txt diff --git a/manager/s3_storage.go b/manager/s3_storage.go index f36e216..e7447b4 100644 --- a/manager/s3_storage.go +++ b/manager/s3_storage.go @@ -84,9 +84,9 @@ func (s *Sync) downloadWallet() error { } func (s *Sync) downloadBlockchainDB() error { - //if util.IsRegTest() { - // return nil // tests fail if we re-use the same blockchain DB - //} + if util.IsRegTest() { + return nil // tests fail if we re-use the same blockchain DB + } defaultBDBPath, defaultTempBDBPath, key, err := s.getBlockchainDBPaths() if err != nil { return errors.Err(err) diff --git a/util/log_wrapper.go b/util/log_wrapper.go index 90a6a68..0d9c630 100644 --- a/util/log_wrapper.go +++ b/util/log_wrapper.go @@ -14,7 +14,7 @@ func SendErrorToSlack(format string, a ...interface{}) { message = fmt.Sprintf(format, a...) } log.Errorln(message) - err := util.SendToSlack(":sos: " + message) + err := util.SendToSlack(":sos: ```" + message + "```") if err != nil { log.Errorln(err) }