mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-18 21:27:51 +00:00
Include full command line arguments in Sentry errors, to help us debug them
This commit is contained in:
parent
3a44782c38
commit
6e034acf23
@ -5,6 +5,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
### Added
|
||||
|
||||
- Include extra usage metadata in error logging to help debugging
|
||||
- Add uploading of build logs when present with resin deploy
|
||||
- Highlight cache usage in a local build
|
||||
- Show a progress bar for upload progress
|
||||
|
@ -29,6 +29,12 @@ Raven.config(require('./config').sentryDsn, {
|
||||
return process.exit(1);
|
||||
});
|
||||
|
||||
Raven.setContext({
|
||||
extra: {
|
||||
args: process.argv
|
||||
}
|
||||
});
|
||||
|
||||
globalTunnel = require('global-tunnel-ng');
|
||||
|
||||
settings = require('resin-settings-client');
|
||||
|
@ -22,7 +22,7 @@ Raven.config require('./config').sentryDsn,
|
||||
.install (logged, error) ->
|
||||
console.error(error)
|
||||
process.exit(1)
|
||||
|
||||
Raven.setContext(extra: args: process.argv)
|
||||
|
||||
# Doing this before requiring any other modules,
|
||||
# including the 'resin-sdk', to prevent any module from reading the http proxy config
|
||||
|
Loading…
Reference in New Issue
Block a user