Fix logging

This commit is contained in:
9seconds
2018-07-08 08:30:08 +03:00
parent 388f7a23d3
commit 4fc6b07448
4 changed files with 16 additions and 12 deletions
+4
View File
@@ -115,18 +115,22 @@ func (m *MTProtoFrame) Write(p []byte) (int, error) {
}
func (m *MTProtoFrame) LogDebug(msg string, data ...interface{}) {
data = append(data, []interface{}{"type", "frame"}...)
m.conn.LogDebug(msg, data...)
}
func (m *MTProtoFrame) LogInfo(msg string, data ...interface{}) {
data = append(data, []interface{}{"type", "frame"}...)
m.conn.LogInfo(msg, data...)
}
func (m *MTProtoFrame) LogWarn(msg string, data ...interface{}) {
data = append(data, []interface{}{"type", "frame"}...)
m.conn.LogWarn(msg, data...)
}
func (m *MTProtoFrame) LogError(msg string, data ...interface{}) {
data = append(data, []interface{}{"type", "frame"}...)
m.conn.LogError(msg, data...)
}