diff --git a/README.md b/README.md index ae920a6..6ebae44 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,8 @@ Hopefully this doesn't break the end user agreement for Microsoft Stream. Since - **npm**: usually comes with Node.js, type `npm` in your terminal to check for its presence - [**ffmpeg**][ffmpeg]: a recent version (year 2019 or above), in `$PATH` or in the same directory as this README file (project root). - [**git**][git]: one or more npm dependencies require git. -- [**aria2**][aria2]: in `$PATH` or in the same directory as this README file (project root). +- [**aria2**][aria2]: present in your `$PATH`, on Linux you can install via `sudo apt install aria2`. + Destreamer takes a [honeybadger](https://www.youtube.com/watch?v=4r7wHMg5Yjg) approach towards the OS it's running on. We've successfully tested it on Windows, macOS and Linux. diff --git a/src/ApiClient.ts b/src/ApiClient.ts index cd14d32..3974be7 100644 --- a/src/ApiClient.ts +++ b/src/ApiClient.ts @@ -34,10 +34,10 @@ export class ApiClient { return true; } logger.warn(`Got HTTP code ${err?.response?.status ?? undefined}. Retrying request...`); - logger.verbose('Here is the error message: \n' + + logger.warn('Here is the error message: \n' + JSON.stringify(err.response?.data ?? undefined) + '\nRetrying request...'); - logger.verbose(`We called this URL: ${err.response?.config.baseURL}${err.response?.config.url}`); + logger.warn(`We called this URL: ${err.response?.config.baseURL}${err.response?.config.url}`); const shouldRetry: boolean = retryCodes.includes(err?.response?.status ?? 0);