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

Log not loading #138

@vermachandra-zz

Description

@vermachandra-zz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions