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({
|
||||
actionCreator: imageDeleted.fulfilled,
|
||||
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({
|
||||
actionCreator: imageDeleted.rejected,
|
||||
effect: (action, { dispatch, getState }) => {
|
||||
moduleLog.warn(
|
||||
moduleLog.debug(
|
||||
{ data: { image: action.meta.arg } },
|
||||
'Unable to delete image'
|
||||
);
|
||||
|
@ -10,7 +10,7 @@ export const addReceivedResultImagesPageFulfilledListener = () => {
|
||||
actionCreator: receivedResultImagesPage.fulfilled,
|
||||
effect: (action, { getState, dispatch }) => {
|
||||
const page = action.payload;
|
||||
moduleLog.info(
|
||||
moduleLog.debug(
|
||||
{ data: { page } },
|
||||
`Received ${page.items.length} results`
|
||||
);
|
||||
|
@ -10,7 +10,7 @@ export const addReceivedUploadImagesPageFulfilledListener = () => {
|
||||
actionCreator: receivedUploadImagesPage.fulfilled,
|
||||
effect: (action, { getState, dispatch }) => {
|
||||
const page = action.payload;
|
||||
moduleLog.info(
|
||||
moduleLog.debug(
|
||||
{ data: { page } },
|
||||
`Received ${page.items.length} uploads`
|
||||
);
|
||||
|
@ -19,7 +19,7 @@ export const addSessionCreatedFulfilledListener = () => {
|
||||
actionCreator: sessionCreated.fulfilled,
|
||||
effect: (action, { getState, dispatch }) => {
|
||||
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,
|
||||
effect: (action, { getState, dispatch }) => {
|
||||
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 }) => {
|
||||
const { sessionId } = getState().system;
|
||||
if (sessionId) {
|
||||
moduleLog.info(
|
||||
moduleLog.debug(
|
||||
{ sessionId },
|
||||
`Session ready to invoke (${sessionId})})`
|
||||
);
|
||||
|
@ -10,7 +10,7 @@ export const addGraphExecutionStateCompleteListener = () => {
|
||||
effect: (action, { dispatch, getState }) => {
|
||||
moduleLog.debug(
|
||||
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({
|
||||
actionCreator: invocationComplete,
|
||||
effect: async (action, { dispatch, getState, take }) => {
|
||||
moduleLog.info(
|
||||
moduleLog.debug(
|
||||
action.payload,
|
||||
`Invocation complete (${action.payload.data.node.type})`
|
||||
);
|
||||
|
@ -8,7 +8,7 @@ export const addInvocationErrorListener = () => {
|
||||
startAppListening({
|
||||
actionCreator: invocationError,
|
||||
effect: (action, { dispatch, getState }) => {
|
||||
moduleLog.debug(
|
||||
moduleLog.error(
|
||||
action.payload,
|
||||
`Invocation error (${action.payload.data.node.type})`
|
||||
);
|
||||
|
@ -19,7 +19,7 @@ export const addInvocationStartedListener = () => {
|
||||
return;
|
||||
}
|
||||
|
||||
moduleLog.info(
|
||||
moduleLog.debug(
|
||||
action.payload,
|
||||
`Invocation started (${action.payload.data.node.type})`
|
||||
);
|
||||
|
@ -91,7 +91,7 @@ export const addUserInvokedCanvasListener = () => {
|
||||
|
||||
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 (baseNode.type === 'img2img' || baseNode.type === 'inpaint') {
|
||||
|
@ -17,7 +17,7 @@ export const addUserInvokedImageToImageListener = () => {
|
||||
|
||||
const graph = buildImageToImageGraph(state);
|
||||
dispatch(imageToImageGraphBuilt(graph));
|
||||
moduleLog({ data: graph }, 'Image to Image graph built');
|
||||
moduleLog.debug({ data: graph }, 'Image to Image graph built');
|
||||
|
||||
dispatch(sessionCreated({ graph }));
|
||||
|
||||
|
@ -17,7 +17,7 @@ export const addUserInvokedNodesListener = () => {
|
||||
|
||||
const graph = buildNodesGraph(state);
|
||||
dispatch(nodesGraphBuilt(graph));
|
||||
moduleLog({ data: graph }, 'Nodes graph built');
|
||||
moduleLog.debug({ data: graph }, 'Nodes graph built');
|
||||
|
||||
dispatch(sessionCreated({ graph }));
|
||||
|
||||
|
@ -19,7 +19,7 @@ export const addUserInvokedTextToImageListener = () => {
|
||||
|
||||
dispatch(textToImageGraphBuilt(graph));
|
||||
|
||||
moduleLog({ data: graph }, 'Text to Image graph built');
|
||||
moduleLog.debug({ data: graph }, 'Text to Image graph built');
|
||||
|
||||
dispatch(sessionCreated({ graph }));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user