Azure-Samples / iot-middleware-freertos-samples

This repo has samples for dev kits using the Azure IoT middleware for FreeRTOS
MIT License
77 stars 46 forks source link

reduce HTTP logs #220

Closed danewalton closed 2 years ago

danewalton commented 2 years ago

Reduces to the below logs. Receive range logs are about 200 lines (ultimately depends on image size but this is for ESP32)

I (17252) AZ IOT: [ADU] Invoke HTTP Connect Callback.
I (17252) AZ IOT: Connecting socket to dwalton-adu-instance--dwalton-adu.b.nlu.dl.adu.microsoft.com
I (17522) esp_sockets: (Network connection 0x3ffcfd00) Connection to dwalton-adu-instance--dwalton-adu.b.nlu.dl.adu.microsoft.com established.
I (17532) AZ IOT:  xStatus: 0
I (17602) AZ IOT: [ADU] HTTP Range Request was successful: size 867568 bytes
I (17602) AZ IOT: [ADU] Send HTTP request.
I (17632) HTTP: [HTTP] [Status 206] Received range 0 to 4095
I (17682) HTTP: [HTTP] [Status 206] Received range 4096 to 8191
I (17722) HTTP: [HTTP] [Status 206] Received range 8192 to 12287
I (17762) HTTP: [HTTP] [Status 206] Received range 12288 to 16383
I (17822) HTTP: [HTTP] [Status 206] Received range 16384 to 20479
I (17882) HTTP: [HTTP] [Status 206] Received range 20480 to 24575
I (17932) HTTP: [HTTP] [Status 206] Received range 24576 to 28671
I (17982) HTTP: [HTTP] [Status 206] Received range 28672 to 32767
I (18022) HTTP: [HTTP] [Status 206] Received range 32768 to 36863
I (18072) HTTP: [HTTP] [Status 206] Received range 36864 to 40959
I (18132) HTTP: [HTTP] [Status 206] Received range 40960 to 45055
I (18172) HTTP: [HTTP] [Status 206] Received range 45056 to 49151
I (18222) HTTP: [HTTP] [Status 206] Received range 49152 to 53247
I (18262) HTTP: [HTTP] [Status 206] Received range 53248 to 57343
I (18312) HTTP: [HTTP] [Status 206] Received range 57344 to 61439
I (18362) HTTP: [HTTP] [Status 206] Received range 61440 to 65535
I (18412) HTTP: [HTTP] [Status 206] Received range 65536 to 69631
I (18462) HTTP: [HTTP] [Status 206] Received range 69632 to 73727
I (18502) HTTP: [HTTP] [Status 206] Received range 73728 to 77823
I (18552) HTTP: [HTTP] [Status 206] Received range 77824 to 81919
I (18602) HTTP: [HTTP] [Status 206] Received range 81920 to 86015
I (18652) HTTP: [HTTP] [Status 206] Received range 86016 to 90111
I (18702) HTTP: [HTTP] [Status 206] Received range 90112 to 94207
I (18742) HTTP: [HTTP] [Status 206] Received range 94208 to 98303
I (18782) HTTP: [HTTP] [Status 206] Received range 98304 to 102399
I (18842) HTTP: [HTTP] [Status 206] Received range 102400 to 106495
I (18902) HTTP: [HTTP] [Status 206] Received range 106496 to 110591
I (18952) HTTP: [HTTP] [Status 206] Received range 110592 to 114687
I (19002) HTTP: [HTTP] [Status 206] Received range 114688 to 118783
I (19042) HTTP: [HTTP] [Status 206] Received range 118784 to 122879
I (19092) HTTP: [HTTP] [Status 206] Received range 122880 to 126975
I (19132) HTTP: [HTTP] [Status 206] Received range 126976 to 131071
I (19172) HTTP: [HTTP] [Status 206] Received range 131072 to 135167
I (19232) HTTP: [HTTP] [Status 206] Received range 135168 to 139263
I (19272) HTTP: [HTTP] [Status 206] Received range 139264 to 143359
I (19322) HTTP: [HTTP] [Status 206] Received range 143360 to 147455
I (19372) HTTP: [HTTP] [Status 206] Received range 147456 to 151551
I (19422) HTTP: [HTTP] [Status 206] Received range 151552 to 155647
I (19482) HTTP: [HTTP] [Status 206] Received range 155648 to 159743
I (19532) HTTP: [HTTP] [Status 206] Received range 159744 to 163839
I (19572) HTTP: [HTTP] [Status 206] Received range 163840 to 167935
I (19612) HTTP: [HTTP] [Status 206] Received range 167936 to 172031
I (19662) HTTP: [HTTP] [Status 206] Received range 172032 to 176127
I (19722) HTTP: [HTTP] [Status 206] Received range 176128 to 180223
I (19762) HTTP: [HTTP] [Status 206] Received range 180224 to 184319
I (19802) HTTP: [HTTP] [Status 206] Received range 184320 to 188415
I (19852) HTTP: [HTTP] [Status 206] Received range 188416 to 192511
I (19902) HTTP: [HTTP] [Status 206] Received range 192512 to 196607
I (19952) HTTP: [HTTP] [Status 206] Received range 196608 to 200703
I (20002) HTTP: [HTTP] [Status 206] Received range 200704 to 204799
I (20042) HTTP: [HTTP] [Status 206] Received range 204800 to 208895
I (20092) HTTP: [HTTP] [Status 206] Received range 208896 to 212991
I (20142) HTTP: [HTTP] [Status 206] Received range 212992 to 217087
I (20192) HTTP: [HTTP] [Status 206] Received range 217088 to 221183
I (20232) HTTP: [HTTP] [Status 206] Received range 221184 to 225279
I (20282) HTTP: [HTTP] [Status 206] Received range 225280 to 229375
I (20342) HTTP: [HTTP] [Status 206] Received range 229376 to 233471
I (20382) HTTP: [HTTP] [Status 206] Received range 233472 to 237567
I (20432) HTTP: [HTTP] [Status 206] Received range 237568 to 241663
I (20492) HTTP: [HTTP] [Status 206] Received range 241664 to 245759
I (20542) HTTP: [HTTP] [Status 206] Received range 245760 to 249855
I (20612) HTTP: [HTTP] [Status 206] Received range 249856 to 253951
I (20652) HTTP: [HTTP] [Status 206] Received range 253952 to 258047
I (20702) HTTP: [HTTP] [Status 206] Received range 258048 to 262143
I (20742) HTTP: [HTTP] [Status 206] Received range 262144 to 266239
I (20792) HTTP: [HTTP] [Status 206] Received range 266240 to 270335
I (20842) HTTP: [HTTP] [Status 206] Received range 270336 to 274431
I (20882) HTTP: [HTTP] [Status 206] Received range 274432 to 278527
I (20932) HTTP: [HTTP] [Status 206] Received range 278528 to 282623
I (20982) HTTP: [HTTP] [Status 206] Received range 282624 to 286719
I (21032) HTTP: [HTTP] [Status 206] Received range 286720 to 290815
I (21072) HTTP: [HTTP] [Status 206] Received range 290816 to 294911
I (21132) HTTP: [HTTP] [Status 206] Received range 294912 to 299007
I (21172) HTTP: [HTTP] [Status 206] Received range 299008 to 303103
I (21222) HTTP: [HTTP] [Status 206] Received range 303104 to 307199
I (21272) HTTP: [HTTP] [Status 206] Received range 307200 to 311295
I (21312) HTTP: [HTTP] [Status 206] Received range 311296 to 315391
I (21352) HTTP: [HTTP] [Status 206] Received range 315392 to 319487
I (21402) HTTP: [HTTP] [Status 206] Received range 319488 to 323583
I (21442) HTTP: [HTTP] [Status 206] Received range 323584 to 327679
I (21492) HTTP: [HTTP] [Status 206] Received range 327680 to 331775
I (21542) HTTP: [HTTP] [Status 206] Received range 331776 to 335871
I (21602) HTTP: [HTTP] [Status 206] Received range 335872 to 339967
I (21642) HTTP: [HTTP] [Status 206] Received range 339968 to 344063
I (21682) HTTP: [HTTP] [Status 206] Received range 344064 to 348159
I (21732) HTTP: [HTTP] [Status 206] Received range 348160 to 352255
I (21772) HTTP: [HTTP] [Status 206] Received range 352256 to 356351
I (21822) HTTP: [HTTP] [Status 206] Received range 356352 to 360447
I (21862) HTTP: [HTTP] [Status 206] Received range 360448 to 364543
I (21912) HTTP: [HTTP] [Status 206] Received range 364544 to 368639
I (21962) HTTP: [HTTP] [Status 206] Received range 368640 to 372735
I (22032) HTTP: [HTTP] [Status 206] Received range 372736 to 376831
I (22072) HTTP: [HTTP] [Status 206] Received range 376832 to 380927
I (22132) HTTP: [HTTP] [Status 206] Received range 380928 to 385023
I (22182) HTTP: [HTTP] [Status 206] Received range 385024 to 389119
I (22232) HTTP: [HTTP] [Status 206] Received range 389120 to 393215
I (22272) HTTP: [HTTP] [Status 206] Received range 393216 to 397311
I (22332) HTTP: [HTTP] [Status 206] Received range 397312 to 401407
I (22382) HTTP: [HTTP] [Status 206] Received range 401408 to 405503
I (22422) HTTP: [HTTP] [Status 206] Received range 405504 to 409599
I (22472) HTTP: [HTTP] [Status 206] Received range 409600 to 413695
I (22522) HTTP: [HTTP] [Status 206] Received range 413696 to 417791
I (22562) HTTP: [HTTP] [Status 206] Received range 417792 to 421887
I (22612) HTTP: [HTTP] [Status 206] Received range 421888 to 425983
I (22682) HTTP: [HTTP] [Status 206] Received range 425984 to 430079
I (22722) HTTP: [HTTP] [Status 206] Received range 430080 to 434175
I (22762) HTTP: [HTTP] [Status 206] Received range 434176 to 438271
I (22812) HTTP: [HTTP] [Status 206] Received range 438272 to 442367
I (22862) HTTP: [HTTP] [Status 206] Received range 442368 to 446463
I (22902) HTTP: [HTTP] [Status 206] Received range 446464 to 450559
I (22952) HTTP: [HTTP] [Status 206] Received range 450560 to 454655
I (23002) HTTP: [HTTP] [Status 206] Received range 454656 to 458751
I (23052) HTTP: [HTTP] [Status 206] Received range 458752 to 462847
I (23112) HTTP: [HTTP] [Status 206] Received range 462848 to 466943
I (23162) HTTP: [HTTP] [Status 206] Received range 466944 to 471039
I (23212) HTTP: [HTTP] [Status 206] Received range 471040 to 475135
I (23272) HTTP: [HTTP] [Status 206] Received range 475136 to 479231
I (23322) HTTP: [HTTP] [Status 206] Received range 479232 to 483327
I (23372) HTTP: [HTTP] [Status 206] Received range 483328 to 487423
I (23422) HTTP: [HTTP] [Status 206] Received range 487424 to 491519
I (23462) HTTP: [HTTP] [Status 206] Received range 491520 to 495615
I (23512) HTTP: [HTTP] [Status 206] Received range 495616 to 499711
I (23552) HTTP: [HTTP] [Status 206] Received range 499712 to 503807
I (23602) HTTP: [HTTP] [Status 206] Received range 503808 to 507903
I (23652) HTTP: [HTTP] [Status 206] Received range 507904 to 511999
I (23702) HTTP: [HTTP] [Status 206] Received range 512000 to 516095
I (23762) HTTP: [HTTP] [Status 206] Received range 516096 to 520191
I (23802) HTTP: [HTTP] [Status 206] Received range 520192 to 524287
I (23852) HTTP: [HTTP] [Status 206] Received range 524288 to 528383
I (23902) HTTP: [HTTP] [Status 206] Received range 528384 to 532479
I (23952) HTTP: [HTTP] [Status 206] Received range 532480 to 536575
I (24012) HTTP: [HTTP] [Status 206] Received range 536576 to 540671
I (24052) HTTP: [HTTP] [Status 206] Received range 540672 to 544767
I (24102) HTTP: [HTTP] [Status 206] Received range 544768 to 548863
I (24152) HTTP: [HTTP] [Status 206] Received range 548864 to 552959
I (24202) HTTP: [HTTP] [Status 206] Received range 552960 to 557055
I (24252) HTTP: [HTTP] [Status 206] Received range 557056 to 561151
I (24302) HTTP: [HTTP] [Status 206] Received range 561152 to 565247
I (24342) HTTP: [HTTP] [Status 206] Received range 565248 to 569343
I (24402) HTTP: [HTTP] [Status 206] Received range 569344 to 573439
I (24452) HTTP: [HTTP] [Status 206] Received range 573440 to 577535
I (24502) HTTP: [HTTP] [Status 206] Received range 577536 to 581631
I (24552) HTTP: [HTTP] [Status 206] Received range 581632 to 585727
I (24602) HTTP: [HTTP] [Status 206] Received range 585728 to 589823
I (24652) HTTP: [HTTP] [Status 206] Received range 589824 to 593919
I (24702) HTTP: [HTTP] [Status 206] Received range 593920 to 598015
I (24772) HTTP: [HTTP] [Status 206] Received range 598016 to 602111
I (24822) HTTP: [HTTP] [Status 206] Received range 602112 to 606207
I (24902) HTTP: [HTTP] [Status 206] Received range 606208 to 610303
I (24952) HTTP: [HTTP] [Status 206] Received range 610304 to 614399
I (25002) HTTP: [HTTP] [Status 206] Received range 614400 to 618495
I (25042) HTTP: [HTTP] [Status 206] Received range 618496 to 622591
I (25092) HTTP: [HTTP] [Status 206] Received range 622592 to 626687
I (25142) HTTP: [HTTP] [Status 206] Received range 626688 to 630783
I (25192) HTTP: [HTTP] [Status 206] Received range 630784 to 634879
I (25242) HTTP: [HTTP] [Status 206] Received range 634880 to 638975
I (25282) HTTP: [HTTP] [Status 206] Received range 638976 to 643071
I (25342) HTTP: [HTTP] [Status 206] Received range 643072 to 647167
I (25382) HTTP: [HTTP] [Status 206] Received range 647168 to 651263
I (25432) HTTP: [HTTP] [Status 206] Received range 651264 to 655359
I (25482) HTTP: [HTTP] [Status 206] Received range 655360 to 659455
I (25522) HTTP: [HTTP] [Status 206] Received range 659456 to 663551
I (25582) HTTP: [HTTP] [Status 206] Received range 663552 to 667647
I (25622) HTTP: [HTTP] [Status 206] Received range 667648 to 671743
I (25672) HTTP: [HTTP] [Status 206] Received range 671744 to 675839
I (25712) HTTP: [HTTP] [Status 206] Received range 675840 to 679935
I (25762) HTTP: [HTTP] [Status 206] Received range 679936 to 684031
I (25812) HTTP: [HTTP] [Status 206] Received range 684032 to 688127
I (25872) HTTP: [HTTP] [Status 206] Received range 688128 to 692223
I (25922) HTTP: [HTTP] [Status 206] Received range 692224 to 696319
I (25972) HTTP: [HTTP] [Status 206] Received range 696320 to 700415
I (26012) HTTP: [HTTP] [Status 206] Received range 700416 to 704511
I (26052) HTTP: [HTTP] [Status 206] Received range 704512 to 708607
I (26132) HTTP: [HTTP] [Status 206] Received range 708608 to 712703
I (26172) HTTP: [HTTP] [Status 206] Received range 712704 to 716799
I (26222) HTTP: [HTTP] [Status 206] Received range 716800 to 720895
I (26282) HTTP: [HTTP] [Status 206] Received range 720896 to 724991
I (26332) HTTP: [HTTP] [Status 206] Received range 724992 to 729087
I (26372) HTTP: [HTTP] [Status 206] Received range 729088 to 733183
I (26422) HTTP: [HTTP] [Status 206] Received range 733184 to 737279
I (26462) HTTP: [HTTP] [Status 206] Received range 737280 to 741375
I (26522) HTTP: [HTTP] [Status 206] Received range 741376 to 745471
I (26572) HTTP: [HTTP] [Status 206] Received range 745472 to 749567
I (26642) HTTP: [HTTP] [Status 206] Received range 749568 to 753663
I (26682) HTTP: [HTTP] [Status 206] Received range 753664 to 757759
I (26722) HTTP: [HTTP] [Status 206] Received range 757760 to 761855
I (26772) HTTP: [HTTP] [Status 206] Received range 761856 to 765951
I (26822) HTTP: [HTTP] [Status 206] Received range 765952 to 770047
I (26862) HTTP: [HTTP] [Status 206] Received range 770048 to 774143
I (26912) HTTP: [HTTP] [Status 206] Received range 774144 to 778239
I (26962) HTTP: [HTTP] [Status 206] Received range 778240 to 782335
I (27022) HTTP: [HTTP] [Status 206] Received range 782336 to 786431
I (27072) HTTP: [HTTP] [Status 206] Received range 786432 to 790527
I (27122) HTTP: [HTTP] [Status 206] Received range 790528 to 794623
I (27162) HTTP: [HTTP] [Status 206] Received range 794624 to 798719
I (27222) HTTP: [HTTP] [Status 206] Received range 798720 to 802815
I (27262) HTTP: [HTTP] [Status 206] Received range 802816 to 806911
I (27312) HTTP: [HTTP] [Status 206] Received range 806912 to 811007
I (27362) HTTP: [HTTP] [Status 206] Received range 811008 to 815103
I (27402) HTTP: [HTTP] [Status 206] Received range 815104 to 819199
I (27442) HTTP: [HTTP] [Status 206] Received range 819200 to 823295
I (27482) HTTP: [HTTP] [Status 206] Received range 823296 to 827391
I (27532) HTTP: [HTTP] [Status 206] Received range 827392 to 831487
I (27572) HTTP: [HTTP] [Status 206] Received range 831488 to 835583
I (27622) HTTP: [HTTP] [Status 206] Received range 835584 to 839679
I (27662) HTTP: [HTTP] [Status 206] Received range 839680 to 843775
I (27702) HTTP: [HTTP] [Status 206] Received range 843776 to 847871
I (27762) HTTP: [HTTP] [Status 206] Received range 847872 to 851967
I (27812) HTTP: [HTTP] [Status 206] Received range 851968 to 856063
I (27852) HTTP: [HTTP] [Status 206] Received range 856064 to 860159
I (27912) HTTP: [HTTP] [Status 206] Received range 860160 to 864255
I (27952) HTTP: [HTTP] [Status 206] Received range 864256 to 868351
I (27962) AZ IOT: [ADU] Image validated against hash from ADU
I (27962) AZ IOT: Base64 Encoded Hash from ADU: qkiokGpaImVnNmonvt6kSxfwGaJriiJZVji+x0gz0gA=
I (27962) AZ IOT: Unencoded the base64 encoding

I (27972) AZ IOT: Starting the mbedtls calculation: image size 867568

cc @jspaith