Skip to content

Commit

Permalink
removed extra debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
rmcvey committed Aug 27, 2018
1 parent 4e64a4a commit 68722eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
10 changes: 4 additions & 6 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ class App extends Component {
}

if (errors && errors.length) {
log.log({
log.error(JSON.stringify({
level: 'error',
message: 'Error scanning',
policy: appPolicy
})
}))

return this.setState({
loading: false,
Expand Down Expand Up @@ -197,11 +197,9 @@ class App extends Component {
)

Promise.all(promises).then(([config, policy, instructions]) => {
log.info('loaded policy', JSON.stringify(policy))
console.info('loaded policy', JSON.stringify(policy))
this.setState({ config, policy, instructions }, () => {
log.info('state policy', JSON.stringify(this.state.policy))
console.info('state policy', JSON.stringify(this.state.policy))
log.info(JSON.stringify(this.state.policy))
console.info('state policy', this.state.policy)
if (!this.state.scanIsRunning) {
this.scan()
}
Expand Down
2 changes: 1 addition & 1 deletion src/ErrorBoundary.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default class ErrorBoundary extends React.Component {

componentDidCatch(error, info) {
this.setState({ hasError: true });
log.error(error, info);
log.error(error);
}

render() {
Expand Down
2 changes: 0 additions & 2 deletions src/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,6 @@ function createWindow () {
log.info('startup error')
log.error(`start:osquery unable to start osquery: ${err}`, err)
})
} else {
log.info('app is not starting')
}

ipcMain.on('contextmenu', event =>
Expand Down

0 comments on commit 68722eb

Please sign in to comment.