Skip to content

Commit

Permalink
fix: Update lotusminer default paths
Browse files Browse the repository at this point in the history
Co-authored-by: Łukasz Magiera <[email protected]>
  • Loading branch information
placer14 and magik6k authored Sep 30, 2021
1 parent 89d7a72 commit 2f8a2fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/lotus-miner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func main() {
Name: "panic-reports",
EnvVars: []string{"LOTUS_PANIC_REPORT_PATH"},
Hidden: true,
Value: "~/.lotus", // should follow --repo default
Value: "~/.lotusminer", // should follow --repo default
},
&cli.StringFlag{
Name: "repo",
Expand Down Expand Up @@ -155,7 +155,7 @@ func main() {
After: func(c *cli.Context) error {
if r := recover(); r != nil {
// Generate report in LOTUS_PATH and re-raise panic
build.GeneratePanicReport(c.String("panic-reports"), c.String("repo"), c.App.Name)
build.GeneratePanicReport(c.String("panic-reports"), c.String(FlagMinerRepo), c.App.Name)
panic(r)
}
return nil
Expand Down
2 changes: 1 addition & 1 deletion cmd/lotus-seal-worker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func main() {
Name: "panic-reports",
EnvVars: []string{"LOTUS_PANIC_REPORT_PATH"},
Hidden: true,
Value: "~/.lotus", // should follow --repo default
Value: "~/.lotusworker", // should follow --repo default
},
&cli.StringFlag{
Name: "miner-repo",
Expand Down

0 comments on commit 2f8a2fc

Please sign in to comment.