Как отключить http.wire при использовании клиента dotify spotify?
Я пытаюсь использовать Spotify DockerClient в моем проекте. Проект НЕ является проектом Maven, поэтому я использую docker-client-8.11.7-shaded.jar, чтобы обойти все зависимости. Он работает нормально, за исключением сообщений журнала DEBUG apache.http.wire. Я искал весь день, пытаясь выяснить, как отключить его без какого-либо успеха. Я пробовал следующее:
- Создайте файл logback.xml и поместите его в мою папку классов
- Настройка моего файла log4j.properties с различными вариациями имени обработчика, включая
- log4j.logger.httpclient.wire= ОШИБКА
- log4j.logger.httpclient.wire.header= ОШИБКА
- log4j.logger.org.apache.commons.httpclient= ОШИБКА
- log4j.logger.org.apache.http.wire= ОШИБКА
- log4j.logger.org.apache.http.headers= ОШИБКА
- log4j.logger.httpclient= ОШИБКА
и так далее...
Я убедился, что в моем пути к классам нет другого файла log4j.properties или log4j.xml. У кого-нибудь есть идеи, что еще я могу попробовать? Я не могу запустить свои юнит-тесты, потому что объем информации, сбрасываемой на экран, делает ее бесполезной. Вот пример того, что я вижу:
8-07-07 15: 56: 14.874] apache.http.wire: 72 [DEBUG] => http-outgoing-1 >> [0xdf] ~ 5c [0xb] [0xac] [0x16] [0xde] [0x8f] it [0xa0] [0x1f] [0xb5] [0xc4] [\ n] "18-07-07 15: 56: 14.874] apache.http.wire: 72 [DEBUG] => http-outgoing-1 >>"[0xa4] [0x83] [0xE8][0x17][0xb2] У;? [0xa6] [0xb6] Y [0xea]> [0xf9] г [0x96] ч "[0x8b] [0xFA] с [0x13] С [0xb3 ] "[0xBB][0xe9]{=y49[0x2][0xc7] г {г [0xa3]k5R[0x8c][0xF4][0xa3][0xFC][0x94]U[0xc]D{[0xbe][0xe3] е ^D[0xa1][0xd7][0x16][0x8d]&[0x12]Y[0xb4] J x7[0xcc][0xa9][0x82]5[0xc1][0x80][0xfc][0xee][0xb5][0xa4]3[0xd2][0x98][0xf4][0xaa]O:[0xb1])-j[0x9b][0xfa][0xaa]5[0x19][0x90][0xc7][0x5][0xd3][0x8e]a[0xd6]N[0x9]}dz*[0xaf][0xc7][0xc][0xbb][0xb4]P^[0x85][[0x81][0xd4][0x8c]~-z[0xe2][0xbc][0xa7]8N[0xfb][0x98][0xca][0x84][0xdf]Sa[0x15][7[0xa3][0x98][0xd6])[0xdf][0x6][0xc7][0xb3][0x13]d[0x1a][0x8c][0x17]F[0x8a][0xd4][0xe0][0xdc]I[0xd9][0xab][0x12][0xab][0xdd][0x7]8,[0x96][0x9d][0xba][0xcc][0xde][0xcf]Z[0xcd][0xcb][0xcd][0x8e]D[0x80]c[0xb4]hV[0xcc]uc[0x10][0xa7][0xc7]o[0x1][0x98]y[0xb1]0NQ[0x89]5[0xe7]m$%z8[0xbc]nF[0xb0]Z[0x86]j[0x97][0x15]W[0xe6]W[0xff][0x8a][0xd0][0x9d](pT[0x86][0xfe][0xd2][0xa9]cNz[0x5]1[0xc6][0x11][0xc0][0x8d][0xb][0x84] [0xb2]][0xf8][0x0]X6y[0x89]K[0x92][0xcc][0x10]JH[0x8e][0x8][0xed]~[0x9e]Bn[0xb9][0xc8]>[0xe2][0xa6][0x87]:?}[0xbb][0xbd][0xc0][0xad][0xdb]>-[0x9e][0x94][0x9f]e[0xe6][0x84][0x18][0xf5][0x9f][0xe7][0xb1][0x17][0x92]K[0x1b][0x85]Z[0xcd][0xf6][0xa9][0xfa][0xe4][0x9][0x99][0xaa][0xf9][0xfa]=4w[0xf1]m[0xc8][0xc8]uB[0xe8][0xf0][0xbf]D[0xbd]o[0xdd]P[0xf2]G+[0xa3][0xc5][0xdf],[0xf0]-[0x15][0x8b][0xd2][0xe][0xee][0xb9]H[0x97][0xf2][0xae][0xbd]D#4[0xe0],[0x8f]/[0xa6][0xa7][0x80]|[0x1a][0x19][0x1a][0x86][0xdc][0xa3][0xc7][0xc2][0xa9]
[0x96][0x9b]Z[0xCC][0xc5]^[0xDE]P'0M;^ В [0x3][0xa1]B[0x9b] у [0xa0] [0xE0] г [0x9] O [0x8c] [0x9F ] u [0x14] [0x9a] QiJ [0xe3] \ 9 [\ n] "18-07-07 15: 56: 14.874] apache.http.wire: 72 [DEBUG] => http-outgoing-1 >>" [0xdf] [0xc8] [0x8e] 7 [\ n] "18-07-07 15: 56: 14.875] apache.http.wire: 72 [DEBUG] => http-outgoing-1 >>" [0x8a] [ \ n] "18-07-07 15: 56: 14.875] apache.http.wire: 72 [DEBUG] => http-outgoing-1 >>" [0x5] [0xe3] [0xc2] [0xad] BA [0x13 ] [0xe0] 0W [0x8d] C [0xf8] [\ n] "18-07-07 15: 56: 14.875] apache.http.wire: 72 [DEBUG] => http-outgoing-1 >>" [0xac ] [0xe4] [0xA5]@[0xb2][0xb5][0x16] Н #[0xbe] F [0x94] [0x95] л?/>%[0xAE] [0xCC]O[0x9A] [0xa4] [0x81] [0xc7] [0xBA]+ [0xa0] [0xb6]BwW[0xd7][0x14][0x1c]w[0xe1][0x94][0xa5]{[0x90]&j[0xca][0xdf][0xa8][0xae][0xc0][0xf2][0xa4]Q[0xc][0xb9]E[0x9c][0xa8][0xf9][\r][0x81][0xc4]E[0x93]d1[0x8c][0xd1]_@[0x9e][0xd8][0x1c]|m[0x88][0xe1][0xac][0xe6][0xb5]A[0xb5][0xb9][0xb3][0xda][0xed]jQ[0xf8]A[\r]+[0x16][0xf5][0x9e]i[0xb2][0xbc]eN[0xa1][0x96][0xdd][0xf9]=A[0xac][0xb7]*+[0xf5]G[0xee][0x82].kU[0xa2][0xeb][0xe8][0xb5][0x89][0xa8][0x94][0xfc]j[0x88]
[0xb6] [0xFC] [0xa8] РЗ?`[0xc4][0xE8] [0xE6] Н [0x9e][0xe4][0x89][0x12] F [0x88] ш [0x8F]7[0x82][0xDF][0x12][0x9A] [0xf5] [0xfb] [0x1a] О:[0xfd]1[0xB7]^ [0x1F] [0xE0] [0xb5] [0xC2]=[0x3][0xe5][0xe2][0x9C] м [0x1] г [0xf9] к [0xda][0xa9][0xc9],[0xDF] [0xD1] d [0x1c] [0x1] [0x1E]+ м [0x1D] [0xcb] [0xc5] [0xf] [ 0xc] [0xf8] [0xAA] д [0x10]= SVS [0xd0]:5[0x1F]'[0xe9][0xf6] [0x9b] [0x6] хр [0x8a] [0x8] [0xF4] L [0xe9] [0xc5] Р [0xfb][0x8b][0xbc][0x8][0x83][0x8]N[0xf]=[0xb8][0xBD][0x12][0xd5][0xb9]Q[0xc0] б [0x86]9[0xc1]\LR>'[0xed]a1[0x6][0xE6] х [0xc9] D "[0x16][0xa6]CNF \=[0xFA] У {[0x3][0xEE] [0xc7] [0xc4]? (Q [0xc] Y [0x91] [0x9] [0xf9]] [0xda] h7 <[0xca] [0xc8] [0x93] 0 & [0xe8] g [0xe3] j [0xbe] Kk [\ n] "18 -07-07 15: 56: 14.875] apache.http.wire: 72 [DEBUG] => http-outgoing-1 >> "[0x86] [0xdf] [0x8d] [0xf3] u [0xa9] [0xa2] [ 0x83] [0xc6] [0xc1] [0xb4] [0x3] [0xad] [0xC3]Yf[0xE] E [0x85] [0x0] [0x9b] 5 [0x90] [0x95] [0x8c] Н ~[0xa9])} ш [0xc5][0xe2][0xd9] г [0xAF]'[0x97][0xFA] [0x10] 1 [0xC2][0xc][0x19]} В [0x8a] [0x9] [0xAE] г![0x92][0xcb][0xb0]Q[0x85][0xd8][0xd8],[0x18]3[0xAF][0x6][\ R] [0xb1] х [0x18][\ п]"
18-07-07 15:56:14.875] apache.http.wire:72 [DEBUG ] => http-outgoing-1 >> "JeF[0x16][0x12]/[0xf1][0x9f][0x15][0xE0][0x7][0xb8][0xa4][0xb2]z8A[0x83][0x80]8\'[0x84][0x15][0x16][0xeb][0xe4][0x17][0xd4] к [0xFC][0x9]2)[0x9A][0xea][0x83] д [0x97] [0xcf] [0xEF][0x93][0x6]7[0xcb] Н +"а [0xc9] [0xa1] Р [0x19]v}[0x99]F[0xAE][0x15]Q[0xa2]{[0xdc]v[0xe9][0xcf][0x5][0xc4]G_[0x85][0x8a]= ф [0x80][0x94]EHK [0x8d] и [ 0xa8] [0xa7] [0xad] [0xBF] [0xa1] [0x8d] [0xB7][0xf6][0x80]"е [0x1E][0xc5][0xd2][0xed][0xEF] [0xE8] [0xB7] [ 0xb6] Х [0xab] С [0xd3]-[0xa0][0x9F] [0xAE] Я [0x9]+ FeB? Kw [0xe4] [0x16] 7 [[0xC3]+E[0xd2]>[0xC8] у [0xff] [0xf0] & т [0x12] к [0x1b] [0xb8] [0x99] [0x1D] [0xb6] [0x14 ] 6 [0x92] [0xDE] [0xE8] [0x8b] аА [0xd3][0x13] Q [0xFA] Я [0xBB] [0x12] 46ScM6. [0xB7] [0x1] [0xfb] G [0xB7] [0xe4] [0xa7] [0xd9] [0xBF] [0xEE] 9 [0xf2] [0xc5] [0xf0]+ [0xBD] [0x1E] [0xBD] [0xc6] T [0xa9] [0x0] С [0xc5] [0xf2] [ 0x94] [0xf0] [0xd0] [0xfb]; [0xf] Y [0xF1] [0xfd] [0xe5] [0x3][0x1a] [0xe7] [0xc7] у [0xe5] [0xC3] Б. [0xb2] [0x90 ] [0xf7] [0xa8] [0x90] [0x97] [0xac] [0x92] [0x9d] hU [0xab] # [0xb9] 5X [0x94] DQB [0xdc] 7 [0x8e] [0x83] z [0xf4] [ 0xf5] [0xDF] [0xed] [0xf7] [0xEE] [0x8F][0x18][0xc6][0x2]=Z"[0xc7][0xCC] [0xBA] [0x8F][0xa2][\ г] г [ 0xd9] F>[0x97][0x8][0x85][0xa0]U[0x7][0xBA] [0xd7] L [0xe5] [0xf7]] [0x16] г [0xB]O[0x83] Н [0xd5] [ 0xEF]EQ[0xa2]%D[0xFA][0x14][0xf3][0xd2]Cj[0x9C] [0x0] [0xe4] [0xB7] [0xb8] [0x98] J [0xEE]T&[0xb8] х [0x15]=[0x86] с [0xa7] [0xfe] [0xAA]S[0xe2] г [0x7]J?[0x91][0xb8]$[0xf6][0xf8][0xa1][0xd8] Xf [0xCC] <[ 0x8b] [0x13] [0xf0] L [0xac] [0x12] [0xc] [0xa6] [0x5] 0 [0xb3] А [0xa7] [0x9A] [0xce] [0x84] Е / [0x96] [0xe7] D [0xd9] Р [0x98] [0xdd] [0x9e]> [0xb8] [0x11] O [0xb9] [0xa7] [0xF1] Кл [0x a2] [0x12] m [0x15] [0xbf]: R [0xdb] [0xf4] [0xa2] [0xdb] [0x9] X [0x8]; [0x9f] O [0xd6] [0xe2] [0xd5] [0xaa] [0x8e] [0xd0] [0x9b] [0xc] [0xf0]} [0xf7] [0xf2] [@ [0x8a] Z [0xC] [0x6] [0xD1]#[0xf3][0xa9][0xe9][0xE6] [0xDE] [0xa1] [0xad] [0xc4] [0x8] [0x18] [0x95] [0xfb] [0xE1] Р [0x6] [0xE6] [0xDE]R+[0x12][0xc4][0x86][0x93][0x81] Я [0xD1] [0xa0] [0x96] [0xff] [0xAE] Р [0xa1] К [0xc1] С [0xcb][[0x8a][0x86][0xf5][0xb3][0x10]$[0xad][0xab][0x90][0xE8] [0xFA] [0xD1][0xf3][0x1D] [0xa6] 0fs =[0xa8] PLE *[0x95][0xec][0xa4]-q[0xdb][0xff][0xdb][0xb5][0xfc]i[0x83][0xad][0x9d][0xbd][\n]"
"
Любая помощь будет невероятно оценена. Спасибо,
1 ответ
Узнал, как его выключить. В основном, потому что это было затенено, лучший способ отключить все эти сообщения журнала было добавить log4j.logger.com.spotify=INFO
на мой log4j. Это прекрасно работает, потому что все затененные файлы находятся под com.spotify/docker/client/shaded/.....