summaryrefslogtreecommitdiff
path: root/dscuss.go
diff options
context:
space:
mode:
authorVitaly Minko <vitaly.minko@gmail.com>2018-06-17 13:38:39 +0300
committerVitaly Minko <vitaly.minko@gmail.com>2018-06-17 13:38:39 +0300
commitb7da769ecedc3f11481e0c4a1d17029ffb843f54 (patch)
tree04b5b8642062a251f420f9a7cb595cc6b0abdc75 /dscuss.go
parent6bc03750a54aa679cbcdf93650faf619b3293d7d (diff)
Debugging StateHandshaking, fixed few bugs here and there.
Diffstat (limited to 'dscuss.go')
-rw-r--r--dscuss.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/dscuss.go b/dscuss.go
index bc3453a..7a30511 100644
--- a/dscuss.go
+++ b/dscuss.go
@@ -93,7 +93,7 @@ func Init(initDir string) error {
return err
}
- log.Error("Dscuss successfully iniitialized.")
+ log.Error("Dscuss successfully initialized.")
return nil
}
@@ -101,7 +101,7 @@ func Uninit() {
if IsLoggedIn() {
Logout()
}
- log.Debug("Dscuss successfully uniniitialized.")
+ log.Debug("Dscuss successfully uninitialized.")
logFile.Close()
}
@@ -115,11 +115,13 @@ func Login(nickname string) error {
return errors.AlreadyLoggedIn
}
- ownr, err := owner.New(dir, nickname)
+ var err error
+ ownr, err = owner.New(dir, nickname)
if err != nil {
log.Errorf("Failed to open %s's data: %v", nickname, err)
return err
}
+ log.Debugf("Trying to login as peer %s", ownr.User.ID.String())
var ap p2p.AddressProvider
switch cfg.Network.AddressProvider {