diff options
author | Wim <wim@42.be> | 2018-02-28 22:23:29 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-02-28 22:23:29 +0100 |
commit | 594d2155e3cbf06f307d076c95984906b53cb40a (patch) | |
tree | ba5a8e62a1642e6489a0f663b08380d45d50e746 /bridge/irc | |
parent | 20dbd713068347ba9a025e02fb0a101e07e6982c (diff) | |
download | matterbridge-msglm-594d2155e3cbf06f307d076c95984906b53cb40a.tar.gz matterbridge-msglm-594d2155e3cbf06f307d076c95984906b53cb40a.tar.bz2 matterbridge-msglm-594d2155e3cbf06f307d076c95984906b53cb40a.zip |
Improve debug messages
Diffstat (limited to 'bridge/irc')
-rw-r--r-- | bridge/irc/irc.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index afe436bc..5f89d295 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -156,7 +156,7 @@ func (b *Birc) Send(msg config.Message) (string, error) { return "", nil } - b.Log.Debugf("Receiving %#v", msg) + b.Log.Debugf("=> Receiving %#v", msg) // Execute a command if strings.HasPrefix(msg.Text, "!") { @@ -289,9 +289,9 @@ func (b *Birc) handleJoinPart(client *girc.Client, event girc.Event) { } } if event.Source.Name != b.Nick { - b.Log.Debugf("Sending JOIN_LEAVE event from %s to gateway", b.Account) + b.Log.Debugf("<= Sending JOIN_LEAVE event from %s to gateway", b.Account) msg := config.Message{Username: "system", Text: event.Source.Name + " " + strings.ToLower(event.Command) + "s", Channel: channel, Account: b.Account, Event: config.EVENT_JOIN_LEAVE} - b.Log.Debugf("Message is %#v", msg) + b.Log.Debugf("<= Message is %#v", msg) b.Remote <- msg return } @@ -352,7 +352,7 @@ func (b *Birc) handlePrivMsg(client *girc.Client, event girc.Event) { return } rmsg := config.Message{Username: event.Source.Name, Channel: strings.ToLower(event.Params[0]), Account: b.Account, UserID: event.Source.Ident + "@" + event.Source.Host} - b.Log.Debugf("Receiving PRIVMSG: %s %s %#v", event.Source.Name, event.Trailing, event) + b.Log.Debugf("== Receiving PRIVMSG: %s %s %#v", event.Source.Name, event.Trailing, event) // set action event if event.IsAction() { @@ -393,7 +393,7 @@ func (b *Birc) handlePrivMsg(client *girc.Client, event girc.Event) { output, _ := ioutil.ReadAll(r) rmsg.Text = string(output) - b.Log.Debugf("Sending message from %s on %s to gateway", event.Params[0], b.Account) + b.Log.Debugf("<= Sending message from %s on %s to gateway", event.Params[0], b.Account) b.Remote <- rmsg } |