Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Log not loading #138

Open
vermachandra-zz opened this issue Jul 17, 2020 · 0 comments
Open

Log not loading #138

vermachandra-zz opened this issue Jul 17, 2020 · 0 comments

Comments

@vermachandra-zz
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant