update gitignore

improve error logging to slack
fix regression in dev builds
This commit is contained in:
Niko Storni 2021-11-24 18:37:04 +01:00
parent 070287716b
commit 28791f317b
3 changed files with 8 additions and 4 deletions

4
.gitignore vendored
View file

@ -4,3 +4,7 @@ e2e/supporty/supporty
.env
blobsfiles
ytsync_docker
e2e/config.json
e2e/cookies.txt

View file

@ -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)

View file

@ -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)
}