cashapp / logquacious

Logquacious (lq) is a fast and simple log viewer.
Apache License 2.0
59 stars 14 forks source link

Log not loading #138

Open vermachandra-zz opened 4 years ago

vermachandra-zz commented 4 years ago

1- When loading custom config file , below error is thrown however file exists in the host server and also it can be seen inside the docker.

import { render } from 'inferno' import { App } from "./components/App" import { Logquacious } from "./services/Logquacious" import { Error } from "./components/Error"

const app = document.getElementById('app')

export async function loadConfig() { try { const resp = await fetch("config.json") const manager = new Logquacious(await resp.json()) render(, app) } catch (e) { // tslint:disable-next-line:no-console console.log(e) // tslint:disable-next-line:no-console console.error("Could not load config.json. Please place it in the same path as index.html.")

render((
  <Error message={`There was an error loading config.json: ${e}`} visible={true}/>
), app)

} }

loadConfig() render(Loading Logquacious, app)

2- ES logs are not shown in the screen only index.html page is displayed.