add logging HELP

This commit is contained in:
Mary Hipp
2023-04-05 14:52:43 -04:00
parent 49f88046fa
commit e2a5271612
2 changed files with 17 additions and 16 deletions

View File

@ -38,6 +38,7 @@ export default function Component({
children,
}: Props) {
useEffect(() => {
console.log('setting OPENAPI.BASE to', apiUrl);
if (apiUrl) OpenAPI.BASE = apiUrl;
}, [apiUrl]);

View File

@ -29,6 +29,7 @@ import {
} from 'services/thunks/session';
import { OpenAPI } from 'services/api';
export const socketMiddleware = () => {
let socket_url = `ws://${window.location.host}`;
console.log('socket middleware file loaded');
@ -45,7 +46,6 @@ const socket = io(socket_url, {
path: '/ws/socket.io',
});
export const socketMiddleware = () => {
let areListenersSet = false;
const middleware: Middleware =