mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
replace console logs with global logging
This commit is contained in:
parent
af42bb8e67
commit
2ff47ede89
@ -47,6 +47,7 @@ class AppGateway {
|
|||||||
} catch(err) {
|
} catch(err) {
|
||||||
// if there are no matching subdomains, we're routing
|
// if there are no matching subdomains, we're routing
|
||||||
// to the default frontend
|
// to the default frontend
|
||||||
|
console.logGlobal(err);
|
||||||
this.load('default');
|
this.load('default');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -90,7 +90,7 @@ let Form = React.createClass({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
console.error(err);
|
console.logGlobal(err);
|
||||||
this.setState({errors: [getLangText('Something went wrong, please try again later')]});
|
this.setState({errors: [getLangText('Something went wrong, please try again later')]});
|
||||||
}
|
}
|
||||||
this.setState({submitted: false});
|
this.setState({submitted: false});
|
||||||
|
@ -271,7 +271,7 @@ var ReactS3FineUploader = React.createClass({
|
|||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
defer.failure(err);
|
defer.failure(err);
|
||||||
console.error(err);
|
console.logGlobal(err);
|
||||||
});
|
});
|
||||||
return defer;
|
return defer;
|
||||||
},
|
},
|
||||||
|
@ -87,7 +87,7 @@ class EditionListStore {
|
|||||||
this.editionList[pieceId].pageSize = prevEditionListPageSize;
|
this.editionList[pieceId].pageSize = prevEditionListPageSize;
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.error(err);
|
console.logGlobal(err);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user