Skip to content

Commit

Permalink
feat(core/utils/request-wrapper): request logging (DIYgod#9691)
Browse files Browse the repository at this point in the history
Signed-off-by: Rongrong <i@rong.moe>
  • Loading branch information
Rongronggg9 authored May 4, 2022
1 parent c1fbc64 commit 23fcb6b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/pr-deploy-route-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ jobs:
run: |
set -ex
gzip -cvd docker-image/rsshub.tar.gz | docker load
docker run -d --name rsshub -e NODE_ENV=dev -p 1200:1200 rsshub:latest
docker run -d \
--name rsshub \
-e NODE_ENV=dev \
-e LOGGER_LEVEL=debug \
-p 1200:1200 \
rsshub:latest
- uses: actions/setup-node@v3 # just need its cache
if: (env.TEST_CONTINUE)
Expand Down
2 changes: 2 additions & 0 deletions lib/utils/request-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ const requestWrapper = (url, options) => {
options.headers['Proxy-Authorization'] = `Basic ${config.proxy.auth}`;
}
logger.info(`Proxy for ${url}`);
} else {
logger.debug(`Requesting ${url}`);
}

// ua
Expand Down

0 comments on commit 23fcb6b

Please sign in to comment.