diff --git a/src/actions/loadLabelValues.js b/src/actions/loadLabelValues.js index 285905ec..00e8ec25 100644 --- a/src/actions/loadLabelValues.js +++ b/src/actions/loadLabelValues.js @@ -46,7 +46,6 @@ export default function loadLabelValues(label, labelList, apiUrl) { l.values = [...values]; } }); - console.log("labels changed from here") dispatch(setLabels(lsList)) } else if(!response) { dispatch(setApiError('URL NOT FOUND')) diff --git a/src/actions/loadLogs.js b/src/actions/loadLogs.js index 92cb63b8..c706df31 100644 --- a/src/actions/loadLogs.js +++ b/src/actions/loadLogs.js @@ -10,6 +10,7 @@ import { setQueryTime } from "./setQueryTime"; import setIsEmptyView from "./setIsEmptyView"; // import adjustedStep from "../components/QueryTypeBar/helpers"; +const debugMode = store.getState().debugMode export async function getAsyncResponse( cb //: callback dispatch function ) { @@ -22,7 +23,7 @@ export function sortMessagesByTimestamp( const startTime = performance.now() const mess = messages?.sort((a, b) => (a.timestamp < b.timestamp ? 1 : -1)); const duration = performance.now() - startTime; - console.log("sorting logs took: ",duration," ms") + if(debugMode) console.log( "🚧 loadLogs / sorting logs took: ",duration," ms") return mess } @@ -51,7 +52,7 @@ export function mapStreams (streams) { }); }); const duration = performance.now() - startTime; - console.log("mapping logs took: ",duration," ms") + if(debugMode) console.log( "🚧 loadLogs / mapping logs took: ",duration," ms") return messages }; @@ -169,7 +170,7 @@ export default function loadLogs() { if (idResult.length === 0) { if (debugMode) console.log( - "getting no data from matrix" + "🚧 loadLogs / getting no data from matrix" ); dispatch(setIsEmptyView(true)); } diff --git a/src/actions/setLabelValues.js b/src/actions/setLabelValues.js index 77bdc1e0..98ab8da2 100644 --- a/src/actions/setLabelValues.js +++ b/src/actions/setLabelValues.js @@ -1,5 +1,4 @@ const setLabelValues = (labelValues) => (dispatch) => { - console.log('labelValues set to', labelValues) dispatch({ type: 'SET_LABEL_VALUES', labelValues diff --git a/src/actions/setLabels.js b/src/actions/setLabels.js index 02a04935..c97659f3 100644 --- a/src/actions/setLabels.js +++ b/src/actions/setLabels.js @@ -1,5 +1,4 @@ export const setLabels = (labels) => (dispatch) => { - console.log('labels set to',labels) dispatch({ type: 'SET_LABELS', labels: labels diff --git a/src/actions/setQueryLimit.js b/src/actions/setQueryLimit.js index 4d4819b9..b05e042e 100644 --- a/src/actions/setQueryLimit.js +++ b/src/actions/setQueryLimit.js @@ -1,5 +1,4 @@ export const setQueryLimit = (limit) => (dispatch) => { - console.log("limit set to",limit) dispatch({ type: 'SET_QUERY_LIMIT', limit diff --git a/src/components/LabelBrowser/ValuesList.js b/src/components/LabelBrowser/ValuesList.js index 68e74247..ee0aacbd 100644 --- a/src/components/LabelBrowser/ValuesList.js +++ b/src/components/LabelBrowser/ValuesList.js @@ -110,7 +110,6 @@ export const ValuesList = (props) => { useEffect(() => { setLabelList(labels); // LABELS - console.log('labels changed') }, [labels]); const handleRefresh = (e) => {