Skip to content

Commit 775dbac

Browse files
committed
friendly error log
1 parent 8c89da1 commit 775dbac

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/frontend_react/src/api/config.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export let config = {
1616
};
1717

1818
export function setApiUrl(url: string | null) {
19-
console.log('setApiUrl called with:', url);
2019
if (url) {
2120
API_URL = url.includes('/api') ? url : `${url}/api`;
2221
}
@@ -41,7 +40,6 @@ export function getConfigData() {
4140
}
4241

4342
export function getApiUrl() {
44-
console.log('getApiUrl called');
4543
if (!API_URL) {
4644
// Check if window.appConfig exists
4745
if (window.appConfig && window.appConfig.API_URL) {

src/frontend_react/src/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const AppWrapper = () => {
1414
window.matchMedia("(prefers-color-scheme: dark)").matches
1515
);
1616
type ConfigType = typeof defaultConfig;
17-
console.log("defaultConfig", defaultConfig);
1817
const [config, setConfig] = useState<ConfigType>(defaultConfig);
1918
useEffect(() => {
2019
const initConfig = async () => {
@@ -36,7 +35,7 @@ const AppWrapper = () => {
3635
setConfig(config);
3736

3837
} catch (error) {
39-
console.info("Error fetching config:", error);
38+
console.info("frontend config did not load from python", error);
4039
} finally {
4140
setIsConfigLoaded(true);
4241
}

0 commit comments

Comments
 (0)