update gitignore

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

No files matched your search

+4
View File
@@ -4,3 +4,7 @@ e2e/supporty/supporty
.env
blobsfiles
ytsync_docker
e2e/config.json
e2e/cookies.txt
+3 -3
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)
+1 -1
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)
}