Skip to content

Commit

Permalink
[#186] Change error log level to info log
Browse files Browse the repository at this point in the history
  • Loading branch information
feelform committed May 2, 2024
1 parent ddac37c commit 6eaa004
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 18 deletions.
28 changes: 16 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
name: CI

# Controls when the action will run.
on: [push, pull_request_target]
on: [push, pull_request]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -21,23 +21,27 @@ jobs:
name: Node ${{ matrix.node_version }} on ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: setup node environment
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
- run: npm install
- run: npm test
- name: Lint
run: npm run lint
- uses: jwgmeligmeyling/checkstyle-github-action@master
with:
path: '**/checkstyle-result.xml'
github-token: ${{ secrets.GITHUB_TOKEN }}
# - name: Lint
# run: npm run lint
# - uses: jwgmeligmeyling/checkstyle-github-action@master
# with:
# path: '**/checkstyle-result.xml'
# github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Coverage
run: npm run coverage
# ... Generate LCOV files or download it from a different job
- name: Setup LCOV
uses: hrishikesh-kadam/setup-lcov@v1
- name: Report coverage
uses: romeovs/[email protected]
uses: zgosalvez/github-actions-report-lcov@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
lcov-file: ./coverage/lcov.info
coverage-files: coverage/lcov.info
github-token: ${{ secrets.ACTIONS_TOKEN }}
update-comment: true
4 changes: 2 additions & 2 deletions lib/utils/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ class Logger {
}

warn() {
this.logger.warn.apply(null, arguments)
this.logger.info.apply(null, arguments)
}

error() {
this.logger.error.apply(null, arguments)
this.logger.info.apply(null, arguments)
}
}

Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pinpoint-node-agent",
"version": "0.8.4-next.1",
"version": "0.8.4-next.2",
"main": "index.js",
"scripts": {
"test": "tape ./test/**/*.test.js",
Expand Down Expand Up @@ -89,8 +89,5 @@
},
"resolutions": {
"semver": "^7.5.3"
},
"volta": {
"node": "16.20.1"
}
}

0 comments on commit 6eaa004

Please sign in to comment.