fix: Update lotusminer default paths
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
This commit is contained in:
parent
89d7a72a4b
commit
2f8a2fc907
@ -117,7 +117,7 @@ func main() {
|
|||||||
Name: "panic-reports",
|
Name: "panic-reports",
|
||||||
EnvVars: []string{"LOTUS_PANIC_REPORT_PATH"},
|
EnvVars: []string{"LOTUS_PANIC_REPORT_PATH"},
|
||||||
Hidden: true,
|
Hidden: true,
|
||||||
Value: "~/.lotus", // should follow --repo default
|
Value: "~/.lotusminer", // should follow --repo default
|
||||||
},
|
},
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
Name: "repo",
|
Name: "repo",
|
||||||
@ -155,7 +155,7 @@ func main() {
|
|||||||
After: func(c *cli.Context) error {
|
After: func(c *cli.Context) error {
|
||||||
if r := recover(); r != nil {
|
if r := recover(); r != nil {
|
||||||
// Generate report in LOTUS_PATH and re-raise panic
|
// 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)
|
panic(r)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
@ -79,7 +79,7 @@ func main() {
|
|||||||
Name: "panic-reports",
|
Name: "panic-reports",
|
||||||
EnvVars: []string{"LOTUS_PANIC_REPORT_PATH"},
|
EnvVars: []string{"LOTUS_PANIC_REPORT_PATH"},
|
||||||
Hidden: true,
|
Hidden: true,
|
||||||
Value: "~/.lotus", // should follow --repo default
|
Value: "~/.lotusworker", // should follow --repo default
|
||||||
},
|
},
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
Name: "miner-repo",
|
Name: "miner-repo",
|
||||||
|
Loading…
Reference in New Issue
Block a user