Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add more info to startup log and healthz endpoint #34

Open
danstoner opened this issue Oct 26, 2018 · 2 comments
Open

add more info to startup log and healthz endpoint #34

danstoner opened this issue Oct 26, 2018 · 2 comments
Assignees

Comments

@danstoner
Copy link
Contributor

Current startup log looks something like:

$ npm start

> [email protected] start /home/dstoner/git/idigbio-search-api
> node index.js

2018-10-26T15:20:36.680Z - info: BEGIN LOGGING - SEVERITY = debug
2018-10-26T15:20:36.682Z - info: Current environment: development
2018-10-26T15:20:37.318Z - info: Using redis server: localhost
2018-10-26T15:20:41.807Z - info: Found updates to lastModified: {"records":"2018-10-13T15:13:05.710Z","mediarecords":"2018-10-13T15:09:10.877Z","recordsets":"2018-10-14T09:25:22.910Z","publishers":"2018-10-12T15:57:20.994Z"}
2018-10-26T15:20:41.808Z - info: updateLastModified durationMs=4464
2018-10-26T15:20:41.904Z - info: App warmup finished
2018-10-26T15:20:41.907Z - info: Server(main) listening on port 19196

What else would be useful to add to the startup log?

Also, what other features might be useful to see at the healthz endpoint?

Currently:

{
ENV: "development",
path: "/healthz",
version: "1.0.5",
index: "idigbio",
maxRecordsets: 10000,
defaultLimit: 100,
maxLimit: 5000,
maxTileObjects: 10000,
logging_severity: "debug"
}
@danstoner danstoner self-assigned this Oct 26, 2018
@danstoner
Copy link
Contributor Author

hostname (unqualified) could be useful.

@danstoner
Copy link
Contributor Author

hostname added to healthz in commit f29f812

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

No branches or pull requests

1 participant