Skip to content

Commit

Permalink
Update telemetry failure logs (vercel#50601)
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk authored and hydRAnger committed Jun 12, 2023
1 parent 1e9619b commit 0d29914
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions test/integration/telemetry/test/config.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('config telemetry', () => {
expect(event1).toMatch(/"redirectsCount": 1/)
expect(event1).toMatch(/"middlewareCount": 0/)
} catch (err) {
require('console').error(stderr)
require('console').error('failing stderr', stderr, err)
throw err
}
})
Expand Down Expand Up @@ -81,7 +81,7 @@ describe('config telemetry', () => {
expect(event1).toMatch(/"pagesDir": true/)
expect(event1).toMatch(/"appDir": false/)
} catch (err) {
require('console').error(stderr)
require('console').error('failing stderr', stderr, err)
throw err
}

Expand Down Expand Up @@ -146,7 +146,7 @@ describe('config telemetry', () => {

expect(event1).toContain('"nextConfigOutput": "export"')
} catch (err) {
require('console').error(stderr)
require('console').error('failing stderr', stderr, err)
throw err
}
} finally {
Expand Down Expand Up @@ -190,7 +190,7 @@ describe('config telemetry', () => {
invocationCount: 1,
})
} catch (err) {
require('console').error(stderr)
require('console').error('failing stderr', stderr, err)
throw err
}
})
Expand Down
4 changes: 2 additions & 2 deletions test/integration/telemetry/test/page-features.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe('page features telemetry', () => {
expect(event1).toMatch(/"pagesDir": true/)
expect(event1).toMatch(/"turboFlag": true/)
} catch (err) {
require('console').error(stderr)
require('console').error('failing stderr', stderr, err)
throw err
}
} finally {
Expand Down Expand Up @@ -217,7 +217,7 @@ describe('page features telemetry', () => {

expect(event2).toMatch(/"totalAppPagesCount": 4/)
} catch (err) {
require('console').error(stderr)
require('console').error('failing stderr', stderr, err)
throw err
}
} finally {
Expand Down

0 comments on commit 0d29914

Please sign in to comment.