mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 10:25:08 +01:00
Nicer formatting for long parametrized function
This commit is contained in:
parent
123e2a4d13
commit
d01acea9ce
@ -13,7 +13,8 @@ import AppConstants from '../constants/application_constants';
|
||||
* @param {boolean} ignoreSentry Defines whether or not the error should be submitted to Sentry
|
||||
* @param {string} comment Will also be submitted to Sentry, but will not be logged
|
||||
*/
|
||||
function logGlobal(error, ignoreSentry = AppConstants.errorMessagesToIgnore.indexOf(error.message) > -1, comment) {
|
||||
function logGlobal(error, ignoreSentry = AppConstants.errorMessagesToIgnore.indexOf(error.message) > -1,
|
||||
comment) {
|
||||
console.error(error);
|
||||
|
||||
if(!ignoreSentry) {
|
||||
|
Loading…
Reference in New Issue
Block a user