pycommonlog 0.2.4__py3-none-any.whl → 0.2.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pycommonlog/providers/lark.py +2 -2
- {pycommonlog-0.2.4.dist-info → pycommonlog-0.2.6.dist-info}/METADATA +1 -1
- {pycommonlog-0.2.4.dist-info → pycommonlog-0.2.6.dist-info}/RECORD +6 -6
- {pycommonlog-0.2.4.dist-info → pycommonlog-0.2.6.dist-info}/WHEEL +0 -0
- {pycommonlog-0.2.4.dist-info → pycommonlog-0.2.6.dist-info}/licenses/LICENSE +0 -0
- {pycommonlog-0.2.4.dist-info → pycommonlog-0.2.6.dist-info}/top_level.txt +0 -0
pycommonlog/providers/lark.py
CHANGED
|
@@ -175,7 +175,7 @@ class LarkProvider(Provider):
|
|
|
175
175
|
formatted += f"\n\n**{filename}:**\n```\n{attachment.content}\n```"
|
|
176
176
|
if attachment and attachment.url:
|
|
177
177
|
formatted += f"\n\n**Attachment:** {attachment.url}"
|
|
178
|
-
return title,
|
|
178
|
+
return title, formatted
|
|
179
179
|
|
|
180
180
|
def _send_lark_webclient(self, title, formatted_message, config):
|
|
181
181
|
debug_log(config, "send_lark_webclient: preparing API request")
|
|
@@ -223,7 +223,7 @@ class LarkProvider(Provider):
|
|
|
223
223
|
}
|
|
224
224
|
debug_log(config, f"send_lark_webclient: sending HTTP request, payload size: {len(str(payload))}, payload: {json.dumps(payload)}")
|
|
225
225
|
|
|
226
|
-
response = requests.post(url, headers=headers, json
|
|
226
|
+
response = requests.post(url, headers=headers, data=json.dumps(payload))
|
|
227
227
|
debug_log(config, f"send_lark_webclient: response status: {response.status_code}")
|
|
228
228
|
if response.status_code != 200:
|
|
229
229
|
error_msg = f"Lark WebClient response: {response.status_code}"
|
|
@@ -3,11 +3,11 @@ pycommonlog/cache.py,sha256=UFmwZ2gtsHwn1b0IOUYr4m1v_wnuey4TeMW44m2c-XI,2662
|
|
|
3
3
|
pycommonlog/log_types.py,sha256=j8YgqsvIHfpdYexH2reTuG4QsZi1vWtk5hkkBD6mYVM,2661
|
|
4
4
|
pycommonlog/logger.py,sha256=x-4WGsuVcmVRikJAYYcPVQ2NqHsetIPkX4AlulKVinc,6960
|
|
5
5
|
pycommonlog/providers/__init__.py,sha256=NfIV3103q6ZMPMiJCeS_I9sPZ7XQNyk3bFSe0Kh4xPE,148
|
|
6
|
-
pycommonlog/providers/lark.py,sha256=
|
|
6
|
+
pycommonlog/providers/lark.py,sha256=Qke0zQW59HflIXFwpo8zXxRSl5q3-dp9ac0ZNFQHspA,12222
|
|
7
7
|
pycommonlog/providers/redis_client.py,sha256=rOkj4_Wpa13scyqtTyDpkkZjXGbnA5iiX4hzcCUcUY8,1855
|
|
8
8
|
pycommonlog/providers/slack.py,sha256=MoyTcE_Y0aFg31uXqsAV_6VF9NCXPwZTcdEb5Ofr02E,4728
|
|
9
|
-
pycommonlog-0.2.
|
|
10
|
-
pycommonlog-0.2.
|
|
11
|
-
pycommonlog-0.2.
|
|
12
|
-
pycommonlog-0.2.
|
|
13
|
-
pycommonlog-0.2.
|
|
9
|
+
pycommonlog-0.2.6.dist-info/licenses/LICENSE,sha256=bxyMRuc_Y6GKeCFV0_vcJf24FqyCVNL_mtUaJ7lfuFo,1075
|
|
10
|
+
pycommonlog-0.2.6.dist-info/METADATA,sha256=uxx7sQTKXBI2WOBLKpj0_i2DD52VAAjWP7fnMP4Cwyw,9733
|
|
11
|
+
pycommonlog-0.2.6.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
12
|
+
pycommonlog-0.2.6.dist-info/top_level.txt,sha256=tHB8NrMYpDeBGSIsRB3JZ17XMlpdTZWKQ-Ejdg_wUb4,12
|
|
13
|
+
pycommonlog-0.2.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|