Commit 2c727e7f authored by szh's avatar szh

add log

parent aaa9f550
...@@ -27,6 +27,7 @@ func RaspberryChan() { ...@@ -27,6 +27,7 @@ func RaspberryChan() {
} }
path := GetAbsPath(setting.BityuanSetting.Name) path := GetAbsPath(setting.BityuanSetting.Name)
if path != "" { if path != "" {
tlog.Info("GetAbsPath node","path",path)
btyPath = path btyPath = path
} }
switch value.Name { switch value.Name {
...@@ -311,7 +312,9 @@ func resetWallet() error { ...@@ -311,7 +312,9 @@ func resetWallet() error {
if isrun { if isrun {
return errors.New("bty is running") return errors.New("bty is running")
} }
err = os.RemoveAll(fmt.Sprintf("%s/wallet", path.Dir(btyPath))) p := fmt.Sprintf("%s/wallet", path.Dir(btyPath))
tlog.Info("reset wallet ","path",p)
err = os.RemoveAll(p)
if err != nil { if err != nil {
return err return err
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment