johnslegers commited on
Commit
f1f2a48
1 Parent(s): 9a308a4
Files changed (1) hide show
  1. ui/media/main.js +11 -12
ui/media/main.js CHANGED
@@ -212,8 +212,7 @@ function setStatus(statusType, msg, msgType) {
212
  }
213
 
214
  if (msgType == 'error') {
215
- console.trace();
216
- console.log(statusType, msg, msgType);
217
  // msg = '<span style="color: red">' + msg + '<span>'
218
  serverStatusColor.style.color = 'red'
219
  serverStatusMsg.style.color = 'red'
@@ -242,7 +241,7 @@ function logMsg(msg, level, outputMsg) {
242
  function logError(msg, res, outputMsg) {
243
  logMsg(msg, 'error', outputMsg)
244
 
245
- console.log('request error', res)
246
  setStatus('request', 'error', 'error')
247
  }
248
 
@@ -273,7 +272,7 @@ async function healthCheck() {
273
  setStatus('server', 'offline', 'error')
274
  }
275
  } catch (e) {
276
- console.log(e);
277
  setStatus('server', 'offline', 'error')
278
  }
279
  }
@@ -508,7 +507,7 @@ async function doMakeImage(task) {
508
  }
509
  }
510
  } catch (e) {
511
- console.log('request error', e)
512
  logError('Stable Diffusion had an error. Please check the logs in the command-line window. <br/><br/>' + e + '<br/><pre>' + e.stack + '</pre>', res, outputMsg)
513
  setStatus('request', 'error', 'error')
514
  progressBar.style.display = 'none'
@@ -743,7 +742,7 @@ function createTask(prompt) {
743
  try {
744
  let res = await fetch('image/stop')
745
  } catch (e) {
746
- console.log(e)
747
  }
748
  } else {
749
  let idx = taskQueue.indexOf(task)
@@ -810,7 +809,7 @@ async function stopAllTasks() {
810
  try {
811
  let res = await fetch('image/stop')
812
  } catch (e) {
813
- console.log(e)
814
  }
815
  }
816
 
@@ -946,7 +945,7 @@ useBetaChannelField.addEventListener('click', async function(e) {
946
 
947
  console.log('set config status response', res)
948
  } catch (e) {
949
- console.log('set config status error', e)
950
  }
951
  })
952
 
@@ -962,7 +961,7 @@ async function getAppConfig() {
962
 
963
  console.log('get config status response', config)
964
  } catch (e) {
965
- console.log('get config status error', e)
966
  }
967
  }
968
 
@@ -989,7 +988,7 @@ async function getModels() {
989
 
990
  console.log('get models response', config)
991
  } catch (e) {
992
- console.log('get models error', e)
993
  }
994
  }
995
 
@@ -1240,7 +1239,7 @@ async function getDiskPath() {
1240
  document.querySelector('#diskPath').value = res
1241
  }
1242
  } catch (e) {
1243
- console.log('error fetching output dir path', e)
1244
  }
1245
  }
1246
 
@@ -1421,6 +1420,6 @@ async function loadModifiers() {
1421
  createCollapsibles(editorModifierEntries)
1422
  }
1423
  } catch (e) {
1424
- console.log('error fetching modifiers', e)
1425
  }
1426
  }
 
212
  }
213
 
214
  if (msgType == 'error') {
215
+ console.trace(statusType, msg, msgType);
 
216
  // msg = '<span style="color: red">' + msg + '<span>'
217
  serverStatusColor.style.color = 'red'
218
  serverStatusMsg.style.color = 'red'
 
241
  function logError(msg, res, outputMsg) {
242
  logMsg(msg, 'error', outputMsg)
243
 
244
+ console.trace('request error', res)
245
  setStatus('request', 'error', 'error')
246
  }
247
 
 
272
  setStatus('server', 'offline', 'error')
273
  }
274
  } catch (e) {
275
+ console.trace(e);
276
  setStatus('server', 'offline', 'error')
277
  }
278
  }
 
507
  }
508
  }
509
  } catch (e) {
510
+ console.trace('request error', e)
511
  logError('Stable Diffusion had an error. Please check the logs in the command-line window. <br/><br/>' + e + '<br/><pre>' + e.stack + '</pre>', res, outputMsg)
512
  setStatus('request', 'error', 'error')
513
  progressBar.style.display = 'none'
 
742
  try {
743
  let res = await fetch('image/stop')
744
  } catch (e) {
745
+ console.trace(e)
746
  }
747
  } else {
748
  let idx = taskQueue.indexOf(task)
 
809
  try {
810
  let res = await fetch('image/stop')
811
  } catch (e) {
812
+ console.trace(e)
813
  }
814
  }
815
 
 
945
 
946
  console.log('set config status response', res)
947
  } catch (e) {
948
+ console.trace('set config status error', e)
949
  }
950
  })
951
 
 
961
 
962
  console.log('get config status response', config)
963
  } catch (e) {
964
+ console.trace('get config status error', e)
965
  }
966
  }
967
 
 
988
 
989
  console.log('get models response', config)
990
  } catch (e) {
991
+ console.trace('get models error', e)
992
  }
993
  }
994
 
 
1239
  document.querySelector('#diskPath').value = res
1240
  }
1241
  } catch (e) {
1242
+ console.trace('error fetching output dir path', e)
1243
  }
1244
  }
1245
 
 
1420
  createCollapsibles(editorModifierEntries)
1421
  }
1422
  } catch (e) {
1423
+ console.trace('error fetching modifiers', e)
1424
  }
1425
  }