change placement of public key

This commit is contained in:
Zack Scholl 2018-06-24 19:29:25 -07:00
parent e084186b5e
commit c5b7ba0905
1 changed files with 1 additions and 2 deletions

View File

@ -104,8 +104,6 @@ func NewConnection(config *AppConfig) (*Connection, error) {
return c, err
}
fmt.Fprintf(os.Stderr, "Your public key: %s\n", c.keypair.Public)
if c.Debug {
SetLogLevel("debug")
} else {
@ -263,6 +261,7 @@ func (c *Connection) Run() error {
}()
}
}
fmt.Fprintf(os.Stderr, "Your public key: %s\n", c.keypair.Public)
log.Debug("checking code validity")
if len(c.Code) == 0 && !c.IsSender {