fix(ui): tweak log levels

This commit is contained in:
psychedelicious 2023-05-26 17:27:42 +10:00
parent 0ea35b1e3d
commit a25bae2545
14 changed files with 18 additions and 15 deletions

View File

@ -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'
);

View File

@ -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`
);

View File

@ -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`
);

View File

@ -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})`);
},
});
};

View File

@ -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})`
);
},
});
};

View File

@ -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})})`
);

View File

@ -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})`
);
},
});

View File

@ -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})`
);

View File

@ -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})`
);

View File

@ -19,7 +19,7 @@ export const addInvocationStartedListener = () => {
return;
}
moduleLog.info(
moduleLog.debug(
action.payload,
`Invocation started (${action.payload.data.node.type})`
);

View File

@ -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') {

View File

@ -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 }));

View File

@ -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 }));

View File

@ -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 }));