From a4443855d113746469ce4b90d238654304985cfd Mon Sep 17 00:00:00 2001 From: Harpreet Singh Date: Sat, 11 Mar 2023 14:55:24 -0800 Subject: [PATCH] Add success log Log a success message if fetch from leetcode is successful --- src/action.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/action.js b/src/action.js index 9f737318..f1d16637 100644 --- a/src/action.js +++ b/src/action.js @@ -196,6 +196,7 @@ async function sync(inputs) { const getSubmissions = async (maxRetries, retryCount = 0) => { try { const response = await axios.get('https://leetcode.com/api/submissions/', config); + log(`Successfully fetched submission from LeetCode, offset ${offset}`); return response; } catch (exception) { if (retryCount >= maxRetries) {