Logging for UI

pull/84/head
Qstick 7 years ago
parent 871a3773b2
commit 2a6decdc4c

@ -30,7 +30,7 @@ function getLatest(cb) {
}
});
var url = 'http://services.sonarr.tv/v1/update/' + branch + '?os=osx';
var url = 'http://services.lidarr.audio/v1/update/' + branch + '?os=osx';
console.log('Checking for latest version:', url);
@ -80,7 +80,7 @@ gulp.task('getSonarr', function() {
console.log('Cleaning old binaries');
del.sync(['./_output/*', '!./_output/UI/']);
console.log('copying binaries to target');
gulp.src(dirName + '/NzbDrone/*.*')
gulp.src(dirName + '/Lidarr/*.*')
.pipe(gulp.dest('./_output/'));
});
});
@ -88,7 +88,7 @@ gulp.task('getSonarr', function() {
});
gulp.task('startSonarr', function() {
var ls = spawn('mono', ['--debug', './_output/NzbDrone.exe']);
var ls = spawn('mono', ['--debug', './_output/Lidarr.exe']);
ls.stdout.on('data', function(data) {
process.stdout.write(data);

@ -1,5 +1,7 @@
import { applyMiddleware, compose } from 'redux';
import ravenMiddleware from 'redux-raven-middleware';
import Raven from 'raven-js';
import createRavenMiddleware from 'raven-for-redux';
// import ravenMiddleware from 'redux-raven-middleware';
import thunk from 'redux-thunk';
import { routerMiddleware } from 'react-router-redux';
import persistState from './persistState';
@ -13,13 +15,15 @@ export default function(history) {
isProduction
} = window.Sonarr;
const dsn = isProduction ? 'https://c3a5b33e08de4e18b7d0505e942dbc95:e35e6d535b034995a6896022c6bfed04@sentry.io/216290' :
'https://c3a5b33e08de4e18b7d0505e942dbc95:e35e6d535b034995a6896022c6bfed04@sentry.io/216290';
const dsn = isProduction ? 'https://c3a5b33e08de4e18b7d0505e942dbc95@sentry.io/216290' :
'https://c3a5b33e08de4e18b7d0505e942dbc95@sentry.io/216290';
Raven.config(dsn).install();
const middlewares = [];
if (analytics) {
middlewares.push(ravenMiddleware(dsn, {
middlewares.push(createRavenMiddleware(Raven, {
environment: isProduction ? 'production' : 'development',
release,
tags: {

14
npm-shrinkwrap.json generated

@ -3603,10 +3603,15 @@
"from": "randomatic@>=1.1.3 <2.0.0",
"resolved": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.5.tgz"
},
"raven-for-redux": {
"version": "1.0.0",
"from": "raven-for-redux@latest",
"resolved": "https://registry.npmjs.org/raven-for-redux/-/raven-for-redux-1.0.0.tgz"
},
"raven-js": {
"version": "3.9.2",
"version": "3.17.0",
"from": "raven-js@>=3.1.1 <4.0.0",
"resolved": "https://registry.npmjs.org/raven-js/-/raven-js-3.9.2.tgz"
"resolved": "https://registry.npmjs.org/raven-js/-/raven-js-3.17.0.tgz"
},
"raw-body": {
"version": "2.1.6",
@ -3947,11 +3952,6 @@
"from": "redux-localstorage@0.4.1",
"resolved": "https://registry.npmjs.org/redux-localstorage/-/redux-localstorage-0.4.1.tgz"
},
"redux-raven-middleware": {
"version": "1.2.0",
"from": "redux-raven-middleware@latest",
"resolved": "https://registry.npmjs.org/redux-raven-middleware/-/redux-raven-middleware-1.2.0.tgz"
},
"redux-thunk": {
"version": "2.2.0",
"from": "redux-thunk@2.2.0",

@ -61,6 +61,8 @@
"postcss-simple-vars": "3.0.0",
"prop-types": "15.5.10",
"query-string": "https://registry.npmjs.org/query-string/-/query-string-4.2.2.tgz",
"raven-js": "3.17.0",
"raven-for-redux": "1.0.0",
"react": "15.6.1",
"react-addons-shallow-compare": "15.6.0",
"react-async-script": "0.9.1",
@ -86,7 +88,6 @@
"redux-actions": "2.0.3",
"redux-batched-actions": "0.2.0",
"redux-localstorage": "0.4.1",
"redux-raven-middleware": "1.2.0",
"redux-thunk": "2.2.0",
"require-nocache": "1.0.0",
"reselect": "3.0.1",

Loading…
Cancel
Save