1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +01:00

replace console logs with global logging

This commit is contained in:
Tim Daubenschütz 2015-07-17 15:52:53 +02:00
parent af42bb8e67
commit 2ff47ede89
7 changed files with 7 additions and 6 deletions

View File

@ -47,6 +47,7 @@ class AppGateway {
} catch(err) {
// if there are no matching subdomains, we're routing
// to the default frontend
console.logGlobal(err);
this.load('default');
}
}

View File

@ -90,7 +90,7 @@ let Form = React.createClass({
}
}
else {
console.error(err);
console.logGlobal(err);
this.setState({errors: [getLangText('Something went wrong, please try again later')]});
}
this.setState({submitted: false});

View File

@ -271,7 +271,7 @@ var ReactS3FineUploader = React.createClass({
})
.catch((err) => {
defer.failure(err);
console.error(err);
console.logGlobal(err);
});
return defer;
},

View File

@ -11,9 +11,9 @@ let EditionListFetcher = {
*/
fetch(pieceId, page, pageSize, orderBy, orderAsc) {
let ordering = generateOrderingQueryParams(orderBy, orderAsc);
return requests.get('editions_list', {
return requests.get('editions_list', {
'piece_id': pieceId,
page,
page,
pageSize,
ordering
});

View File

@ -87,7 +87,7 @@ class EditionListStore {
this.editionList[pieceId].pageSize = prevEditionListPageSize;
})
.catch((err) => {
console.error(err);
console.logGlobal(err);
});
}

View File

@ -117,7 +117,7 @@ export function mergeOptions(...l) {
* Merges a number of objects even if there're having duplicates.
*
* DOES NOT RETURN AN ERROR!
*
*
* Takes a list of object and merges their keys to one object.
* Uses mergeOptions for two objects.
* @param {[type]} l [description]