Removing unnecessary logging

This commit is contained in:
Jeffrey Morgan 2015-01-27 16:09:26 -05:00
parent 05d0f5a740
commit 86afb4d253
3 changed files with 1 additions and 4 deletions

View File

@ -36,7 +36,6 @@ var ContainerDetails = React.createClass({
ContainerStore.on(ContainerStore.SERVER_LOGS_EVENT, this.updateLogs); ContainerStore.on(ContainerStore.SERVER_LOGS_EVENT, this.updateLogs);
}, },
componentWillUnmount: function () { componentWillUnmount: function () {
// app close
ContainerStore.removeListener(ContainerStore.SERVER_PROGRESS_EVENT, this.updateProgress); ContainerStore.removeListener(ContainerStore.SERVER_PROGRESS_EVENT, this.updateProgress);
ContainerStore.removeListener(ContainerStore.SERVER_LOGS_EVENT, this.updateLogs); ContainerStore.removeListener(ContainerStore.SERVER_LOGS_EVENT, this.updateLogs);
}, },
@ -68,7 +67,6 @@ var ContainerDetails = React.createClass({
}); });
}, },
updateProgress: function (name) { updateProgress: function (name) {
console.log('progress', name, ContainerStore.progress(name));
if (name === this.getParams().name) { if (name === this.getParams().name) {
this.setState({ this.setState({
progress: ContainerStore.progress(name) progress: ContainerStore.progress(name)

View File

@ -110,7 +110,7 @@ var ContainerStore = assign(EventEmitter.prototype, {
_createContainer: function (name, containerData, callback) { _createContainer: function (name, containerData, callback) {
var existing = docker.client().getContainer(name); var existing = docker.client().getContainer(name);
var self = this; var self = this;
containerData.name = containerData.Name; if (!containerData.name) containerData.name = containerData.Name;
if (containerData.Config && containerData.Config.Image) { if (containerData.Config && containerData.Config.Image) {
containerData.Image = containerData.Config.Image; containerData.Image = containerData.Config.Image;
} }

View File

@ -4,7 +4,6 @@ var ipc = require('ipc');
// TODO: move this somewhere else // TODO: move this somewhere else
if (localStorage.getItem('options')) { if (localStorage.getItem('options')) {
console.log(JSON.parse(localStorage.getItem('options')));
ipc.send('vm', JSON.parse(localStorage.getItem('options')).save_vm_on_quit); ipc.send('vm', JSON.parse(localStorage.getItem('options')).save_vm_on_quit);
} }