9seconds 7 лет назад
Родитель
Сommit
4fc6b07448

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

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

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

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

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

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

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

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

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