mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): tweak log levels
This commit is contained in:
parent
0ea35b1e3d
commit
a25bae2545
@ -84,7 +84,7 @@ export const addImageDeletedFulfilledListener = () => {
|
|||||||
startAppListening({
|
startAppListening({
|
||||||
actionCreator: imageDeleted.fulfilled,
|
actionCreator: imageDeleted.fulfilled,
|
||||||
effect: (action, { dispatch, getState }) => {
|
effect: (action, { dispatch, getState }) => {
|
||||||
moduleLog.info({ data: { image: action.meta.arg } }, 'Image deleted');
|
moduleLog.debug({ data: { image: action.meta.arg } }, 'Image deleted');
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@ -96,7 +96,7 @@ export const addImageDeletedRejectedListener = () => {
|
|||||||
startAppListening({
|
startAppListening({
|
||||||
actionCreator: imageDeleted.rejected,
|
actionCreator: imageDeleted.rejected,
|
||||||
effect: (action, { dispatch, getState }) => {
|
effect: (action, { dispatch, getState }) => {
|
||||||
moduleLog.warn(
|
moduleLog.debug(
|
||||||
{ data: { image: action.meta.arg } },
|
{ data: { image: action.meta.arg } },
|
||||||
'Unable to delete image'
|
'Unable to delete image'
|
||||||
);
|
);
|
||||||
|
@ -10,7 +10,7 @@ export const addReceivedResultImagesPageFulfilledListener = () => {
|
|||||||
actionCreator: receivedResultImagesPage.fulfilled,
|
actionCreator: receivedResultImagesPage.fulfilled,
|
||||||
effect: (action, { getState, dispatch }) => {
|
effect: (action, { getState, dispatch }) => {
|
||||||
const page = action.payload;
|
const page = action.payload;
|
||||||
moduleLog.info(
|
moduleLog.debug(
|
||||||
{ data: { page } },
|
{ data: { page } },
|
||||||
`Received ${page.items.length} results`
|
`Received ${page.items.length} results`
|
||||||
);
|
);
|
||||||
|
@ -10,7 +10,7 @@ export const addReceivedUploadImagesPageFulfilledListener = () => {
|
|||||||
actionCreator: receivedUploadImagesPage.fulfilled,
|
actionCreator: receivedUploadImagesPage.fulfilled,
|
||||||
effect: (action, { getState, dispatch }) => {
|
effect: (action, { getState, dispatch }) => {
|
||||||
const page = action.payload;
|
const page = action.payload;
|
||||||
moduleLog.info(
|
moduleLog.debug(
|
||||||
{ data: { page } },
|
{ data: { page } },
|
||||||
`Received ${page.items.length} uploads`
|
`Received ${page.items.length} uploads`
|
||||||
);
|
);
|
||||||
|
@ -19,7 +19,7 @@ export const addSessionCreatedFulfilledListener = () => {
|
|||||||
actionCreator: sessionCreated.fulfilled,
|
actionCreator: sessionCreated.fulfilled,
|
||||||
effect: (action, { getState, dispatch }) => {
|
effect: (action, { getState, dispatch }) => {
|
||||||
const session = action.payload;
|
const session = action.payload;
|
||||||
moduleLog.info({ data: { session } }, `Session created (${session.id})`);
|
moduleLog.debug({ data: { session } }, `Session created (${session.id})`);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -19,7 +19,10 @@ export const addSessionInvokedFulfilledListener = () => {
|
|||||||
actionCreator: sessionInvoked.fulfilled,
|
actionCreator: sessionInvoked.fulfilled,
|
||||||
effect: (action, { getState, dispatch }) => {
|
effect: (action, { getState, dispatch }) => {
|
||||||
const { sessionId } = action.meta.arg;
|
const { sessionId } = action.meta.arg;
|
||||||
moduleLog.info({ data: { sessionId } }, `Session invoked (${sessionId})`);
|
moduleLog.debug(
|
||||||
|
{ data: { sessionId } },
|
||||||
|
`Session invoked (${sessionId})`
|
||||||
|
);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -11,7 +11,7 @@ export const addSessionReadyToInvokeListener = () => {
|
|||||||
effect: (action, { getState, dispatch }) => {
|
effect: (action, { getState, dispatch }) => {
|
||||||
const { sessionId } = getState().system;
|
const { sessionId } = getState().system;
|
||||||
if (sessionId) {
|
if (sessionId) {
|
||||||
moduleLog.info(
|
moduleLog.debug(
|
||||||
{ sessionId },
|
{ sessionId },
|
||||||
`Session ready to invoke (${sessionId})})`
|
`Session ready to invoke (${sessionId})})`
|
||||||
);
|
);
|
||||||
|
@ -10,7 +10,7 @@ export const addGraphExecutionStateCompleteListener = () => {
|
|||||||
effect: (action, { dispatch, getState }) => {
|
effect: (action, { dispatch, getState }) => {
|
||||||
moduleLog.debug(
|
moduleLog.debug(
|
||||||
action.payload,
|
action.payload,
|
||||||
`Graph execution state complete (${action.payload.data.graph_execution_state_id})`
|
`Session invocation complete (${action.payload.data.graph_execution_state_id})`
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -15,7 +15,7 @@ export const addInvocationCompleteListener = () => {
|
|||||||
startAppListening({
|
startAppListening({
|
||||||
actionCreator: invocationComplete,
|
actionCreator: invocationComplete,
|
||||||
effect: async (action, { dispatch, getState, take }) => {
|
effect: async (action, { dispatch, getState, take }) => {
|
||||||
moduleLog.info(
|
moduleLog.debug(
|
||||||
action.payload,
|
action.payload,
|
||||||
`Invocation complete (${action.payload.data.node.type})`
|
`Invocation complete (${action.payload.data.node.type})`
|
||||||
);
|
);
|
||||||
|
@ -8,7 +8,7 @@ export const addInvocationErrorListener = () => {
|
|||||||
startAppListening({
|
startAppListening({
|
||||||
actionCreator: invocationError,
|
actionCreator: invocationError,
|
||||||
effect: (action, { dispatch, getState }) => {
|
effect: (action, { dispatch, getState }) => {
|
||||||
moduleLog.debug(
|
moduleLog.error(
|
||||||
action.payload,
|
action.payload,
|
||||||
`Invocation error (${action.payload.data.node.type})`
|
`Invocation error (${action.payload.data.node.type})`
|
||||||
);
|
);
|
||||||
|
@ -19,7 +19,7 @@ export const addInvocationStartedListener = () => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
moduleLog.info(
|
moduleLog.debug(
|
||||||
action.payload,
|
action.payload,
|
||||||
`Invocation started (${action.payload.data.node.type})`
|
`Invocation started (${action.payload.data.node.type})`
|
||||||
);
|
);
|
||||||
|
@ -91,7 +91,7 @@ export const addUserInvokedCanvasListener = () => {
|
|||||||
|
|
||||||
dispatch(canvasGraphBuilt(graph));
|
dispatch(canvasGraphBuilt(graph));
|
||||||
|
|
||||||
moduleLog({ data: graph }, 'Canvas graph built');
|
moduleLog.debug({ data: graph }, 'Canvas graph built');
|
||||||
|
|
||||||
// If we are generating img2img or inpaint, we need to upload the init images
|
// If we are generating img2img or inpaint, we need to upload the init images
|
||||||
if (baseNode.type === 'img2img' || baseNode.type === 'inpaint') {
|
if (baseNode.type === 'img2img' || baseNode.type === 'inpaint') {
|
||||||
|
@ -17,7 +17,7 @@ export const addUserInvokedImageToImageListener = () => {
|
|||||||
|
|
||||||
const graph = buildImageToImageGraph(state);
|
const graph = buildImageToImageGraph(state);
|
||||||
dispatch(imageToImageGraphBuilt(graph));
|
dispatch(imageToImageGraphBuilt(graph));
|
||||||
moduleLog({ data: graph }, 'Image to Image graph built');
|
moduleLog.debug({ data: graph }, 'Image to Image graph built');
|
||||||
|
|
||||||
dispatch(sessionCreated({ graph }));
|
dispatch(sessionCreated({ graph }));
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ export const addUserInvokedNodesListener = () => {
|
|||||||
|
|
||||||
const graph = buildNodesGraph(state);
|
const graph = buildNodesGraph(state);
|
||||||
dispatch(nodesGraphBuilt(graph));
|
dispatch(nodesGraphBuilt(graph));
|
||||||
moduleLog({ data: graph }, 'Nodes graph built');
|
moduleLog.debug({ data: graph }, 'Nodes graph built');
|
||||||
|
|
||||||
dispatch(sessionCreated({ graph }));
|
dispatch(sessionCreated({ graph }));
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ export const addUserInvokedTextToImageListener = () => {
|
|||||||
|
|
||||||
dispatch(textToImageGraphBuilt(graph));
|
dispatch(textToImageGraphBuilt(graph));
|
||||||
|
|
||||||
moduleLog({ data: graph }, 'Text to Image graph built');
|
moduleLog.debug({ data: graph }, 'Text to Image graph built');
|
||||||
|
|
||||||
dispatch(sessionCreated({ graph }));
|
dispatch(sessionCreated({ graph }));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user