summaryrefslogtreecommitdiffstats
path: root/bridge/sshchat/sshchat.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-02-28 22:23:29 +0100
committerWim <wim@42.be>2018-02-28 22:23:29 +0100
commit594d2155e3cbf06f307d076c95984906b53cb40a (patch)
treeba5a8e62a1642e6489a0f663b08380d45d50e746 /bridge/sshchat/sshchat.go
parent20dbd713068347ba9a025e02fb0a101e07e6982c (diff)
downloadmatterbridge-msglm-594d2155e3cbf06f307d076c95984906b53cb40a.tar.gz
matterbridge-msglm-594d2155e3cbf06f307d076c95984906b53cb40a.tar.bz2
matterbridge-msglm-594d2155e3cbf06f307d076c95984906b53cb40a.zip
Improve debug messages
Diffstat (limited to 'bridge/sshchat/sshchat.go')
-rw-r--r--bridge/sshchat/sshchat.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bridge/sshchat/sshchat.go b/bridge/sshchat/sshchat.go
index ab6b06c7..c11d3daa 100644
--- a/bridge/sshchat/sshchat.go
+++ b/bridge/sshchat/sshchat.go
@@ -55,7 +55,7 @@ func (b *Bsshchat) Send(msg config.Message) (string, error) {
if msg.Event == config.EVENT_MSG_DELETE {
return "", nil
}
- b.Log.Debugf("Receiving %#v", msg)
+ b.Log.Debugf("=> Receiving %#v", msg)
if msg.Extra != nil {
for _, rmsg := range helper.HandleExtra(&msg, b.General) {
b.w.Write([]byte(rmsg.Username + rmsg.Text + "\r\n"))
@@ -124,7 +124,7 @@ func (b *Bsshchat) handleSshChat() error {
continue
}
if !wait {
- b.Log.Debugf("message %#v", res)
+ b.Log.Debugf("<= Message %#v", res)
rmsg := config.Message{Username: res[0], Text: strings.Join(res[1:], ":"), Channel: "sshchat", Account: b.Account, UserID: "nick"}
b.Remote <- rmsg
}