]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Add failure logging to DiscordWebhook.cs (#30835)
authorJacob <jakevilevac@gmail.com>
Tue, 20 Aug 2024 21:12:30 +0000 (14:12 -0700)
committerGitHub <noreply@github.com>
Tue, 20 Aug 2024 21:12:30 +0000 (23:12 +0200)
commitbeb86fa0fec95798ecc3811a93efad3b6675ef93
tree97db774ddc72c59dd7b1c40c88ad388b01166c0e
parent193dcb4b4505dc95ae24d8b182877388d1b19b52
Add failure logging to DiscordWebhook.cs (#30835)

* Add failure logging to DiscordWebhook.cs

Add a new function that logs errors with discord webhook's http requests.

Create, Delete, and Edit functions were modified slightly to call the log function but return the same information as before.

The log function logs the error code, caller method using a simple constant (could be better), and attempts to log headers mentioned in issue #30248.

* remove extra ';'

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
* Move header error logs to debug

---------

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
Content.Server/Discord/DiscordWebhook.cs