Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl committed Jun 26, 2018
1 parent 755650e commit 06f6642
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/renter/persist.go
Expand Up @@ -5,6 +5,7 @@ import (
"compress/gzip"
"encoding/base64"
"errors"
"fmt"
"io"
"os"
"path/filepath"
Expand Down Expand Up @@ -218,6 +219,7 @@ func (r *Renter) loadSiaFiles() error {
// folder.
if err != nil {
r.log.Println("WARN: could not stat file or folder during walk:", err)
fmt.Println("1", err)
return nil
}

Expand All @@ -230,6 +232,7 @@ func (r *Renter) loadSiaFiles() error {
file, err := os.Open(path)
if err != nil {
r.log.Println("ERROR: could not open .sia file:", err)
fmt.Println("2", err)
return nil
}
defer file.Close()
Expand All @@ -238,6 +241,7 @@ func (r *Renter) loadSiaFiles() error {
_, err = r.loadSharedFiles(file)
if err != nil {
r.log.Println("ERROR: could not load .sia file:", err)
fmt.Println("3", err)
return nil
}
return nil
Expand Down

0 comments on commit 06f6642

Please sign in to comment.