diff --git a/lib/main.js b/lib/main.js index d2fa085b..36094789 100644 --- a/lib/main.js +++ b/lib/main.js @@ -69,7 +69,12 @@ function wrapWebhook(webhook, payload) { const host = fullProxy ? fullProxy.split(':')[0] : ''; const port = fullProxy ? parseInt(fullProxy.split(':')[1]) : ''; const proxy = host && port ? { proxy: { host, port } } : {}; - yield axios_1.default.post(webhook, payload, proxy); + const client = axios_1.default.create(proxy); + client.interceptors.request.use((config) => { + utils_1.logInfo(JSON.stringify(config)); + return config; + }); + yield client.post(webhook, payload); } catch (e) { if (e.response) {