9seconds 7 лет назад
Родитель
Сommit
4fc6b07448
4 измененных файлов: 16 добавлений и 12 удалений
  1. 4
    4
      wrappers/mtproto_abridged.go
  2. 4
    0
      wrappers/mtproto_frame.go
  3. 4
    4
      wrappers/mtproto_intermediate.go
  4. 4
    4
      wrappers/mtproto_proxy.go

+ 4
- 4
wrappers/mtproto_abridged.go Просмотреть файл

125
 }
125
 }
126
 
126
 
127
 func (m *MTProtoAbridged) LogDebug(msg string, data ...interface{}) {
127
 func (m *MTProtoAbridged) LogDebug(msg string, data ...interface{}) {
128
-	data = append(data, []interface{}{"type", "abridged"})
128
+	data = append(data, []interface{}{"type", "abridged"}...)
129
 	m.conn.LogDebug(msg, data...)
129
 	m.conn.LogDebug(msg, data...)
130
 }
130
 }
131
 
131
 
132
 func (m *MTProtoAbridged) LogInfo(msg string, data ...interface{}) {
132
 func (m *MTProtoAbridged) LogInfo(msg string, data ...interface{}) {
133
-	data = append(data, []interface{}{"type", "abridged"})
133
+	data = append(data, []interface{}{"type", "abridged"}...)
134
 	m.conn.LogInfo(msg, data...)
134
 	m.conn.LogInfo(msg, data...)
135
 }
135
 }
136
 
136
 
137
 func (m *MTProtoAbridged) LogWarn(msg string, data ...interface{}) {
137
 func (m *MTProtoAbridged) LogWarn(msg string, data ...interface{}) {
138
-	data = append(data, []interface{}{"type", "abridged"})
138
+	data = append(data, []interface{}{"type", "abridged"}...)
139
 	m.conn.LogWarn(msg, data...)
139
 	m.conn.LogWarn(msg, data...)
140
 }
140
 }
141
 
141
 
142
 func (m *MTProtoAbridged) LogError(msg string, data ...interface{}) {
142
 func (m *MTProtoAbridged) LogError(msg string, data ...interface{}) {
143
-	data = append(data, []interface{}{"type", "abridged"})
143
+	data = append(data, []interface{}{"type", "abridged"}...)
144
 	m.conn.LogError(msg, data...)
144
 	m.conn.LogError(msg, data...)
145
 }
145
 }
146
 
146
 

+ 4
- 0
wrappers/mtproto_frame.go Просмотреть файл

115
 }
115
 }
116
 
116
 
117
 func (m *MTProtoFrame) LogDebug(msg string, data ...interface{}) {
117
 func (m *MTProtoFrame) LogDebug(msg string, data ...interface{}) {
118
+	data = append(data, []interface{}{"type", "frame"}...)
118
 	m.conn.LogDebug(msg, data...)
119
 	m.conn.LogDebug(msg, data...)
119
 }
120
 }
120
 
121
 
121
 func (m *MTProtoFrame) LogInfo(msg string, data ...interface{}) {
122
 func (m *MTProtoFrame) LogInfo(msg string, data ...interface{}) {
123
+	data = append(data, []interface{}{"type", "frame"}...)
122
 	m.conn.LogInfo(msg, data...)
124
 	m.conn.LogInfo(msg, data...)
123
 }
125
 }
124
 
126
 
125
 func (m *MTProtoFrame) LogWarn(msg string, data ...interface{}) {
127
 func (m *MTProtoFrame) LogWarn(msg string, data ...interface{}) {
128
+	data = append(data, []interface{}{"type", "frame"}...)
126
 	m.conn.LogWarn(msg, data...)
129
 	m.conn.LogWarn(msg, data...)
127
 }
130
 }
128
 
131
 
129
 func (m *MTProtoFrame) LogError(msg string, data ...interface{}) {
132
 func (m *MTProtoFrame) LogError(msg string, data ...interface{}) {
133
+	data = append(data, []interface{}{"type", "frame"}...)
130
 	m.conn.LogError(msg, data...)
134
 	m.conn.LogError(msg, data...)
131
 }
135
 }
132
 
136
 

+ 4
- 4
wrappers/mtproto_intermediate.go Просмотреть файл

80
 }
80
 }
81
 
81
 
82
 func (m *MTProtoIntermediate) LogDebug(msg string, data ...interface{}) {
82
 func (m *MTProtoIntermediate) LogDebug(msg string, data ...interface{}) {
83
-	data = append(data, []interface{}{"type", "intermediate"})
83
+	data = append(data, []interface{}{"type", "intermediate"}...)
84
 	m.conn.LogDebug(msg, data...)
84
 	m.conn.LogDebug(msg, data...)
85
 }
85
 }
86
 
86
 
87
 func (m *MTProtoIntermediate) LogInfo(msg string, data ...interface{}) {
87
 func (m *MTProtoIntermediate) LogInfo(msg string, data ...interface{}) {
88
-	data = append(data, []interface{}{"type", "intermediate"})
88
+	data = append(data, []interface{}{"type", "intermediate"}...)
89
 	m.conn.LogInfo(msg, data...)
89
 	m.conn.LogInfo(msg, data...)
90
 }
90
 }
91
 
91
 
92
 func (m *MTProtoIntermediate) LogWarn(msg string, data ...interface{}) {
92
 func (m *MTProtoIntermediate) LogWarn(msg string, data ...interface{}) {
93
-	data = append(data, []interface{}{"type", "intermediate"})
93
+	data = append(data, []interface{}{"type", "intermediate"}...)
94
 	m.conn.LogWarn(msg, data...)
94
 	m.conn.LogWarn(msg, data...)
95
 }
95
 }
96
 
96
 
97
 func (m *MTProtoIntermediate) LogError(msg string, data ...interface{}) {
97
 func (m *MTProtoIntermediate) LogError(msg string, data ...interface{}) {
98
-	data = append(data, []interface{}{"type", "intermediate"})
98
+	data = append(data, []interface{}{"type", "intermediate"}...)
99
 	m.conn.LogError(msg, data...)
99
 	m.conn.LogError(msg, data...)
100
 }
100
 }
101
 
101
 

+ 4
- 4
wrappers/mtproto_proxy.go Просмотреть файл

98
 }
98
 }
99
 
99
 
100
 func (m *MTProtoProxy) LogDebug(msg string, data ...interface{}) {
100
 func (m *MTProtoProxy) LogDebug(msg string, data ...interface{}) {
101
-	data = append(data, []interface{}{"type", "proxy"})
101
+	data = append(data, []interface{}{"type", "proxy"}...)
102
 	m.conn.LogDebug(msg, data...)
102
 	m.conn.LogDebug(msg, data...)
103
 }
103
 }
104
 
104
 
105
 func (m *MTProtoProxy) LogInfo(msg string, data ...interface{}) {
105
 func (m *MTProtoProxy) LogInfo(msg string, data ...interface{}) {
106
-	data = append(data, []interface{}{"type", "proxy"})
106
+	data = append(data, []interface{}{"type", "proxy"}...)
107
 	m.conn.LogInfo(msg, data...)
107
 	m.conn.LogInfo(msg, data...)
108
 }
108
 }
109
 
109
 
110
 func (m *MTProtoProxy) LogWarn(msg string, data ...interface{}) {
110
 func (m *MTProtoProxy) LogWarn(msg string, data ...interface{}) {
111
-	data = append(data, []interface{}{"type", "proxy"})
111
+	data = append(data, []interface{}{"type", "proxy"}...)
112
 	m.conn.LogWarn(msg, data...)
112
 	m.conn.LogWarn(msg, data...)
113
 }
113
 }
114
 
114
 
115
 func (m *MTProtoProxy) LogError(msg string, data ...interface{}) {
115
 func (m *MTProtoProxy) LogError(msg string, data ...interface{}) {
116
-	data = append(data, []interface{}{"type", "proxy"})
116
+	data = append(data, []interface{}{"type", "proxy"}...)
117
 	m.conn.LogError(msg, data...)
117
 	m.conn.LogError(msg, data...)
118
 }
118
 }
119
 
119
 

Загрузка…
Отмена
Сохранить