crkn-rcdr / sapindale

Sapper/Svelte access platform administration interface
2 stars 2 forks source link

Dates on stderr messages. #100

Closed RussellMcOrmond closed 2 years ago

RussellMcOrmond commented 3 years ago

As Lapin is being folded into Sapindale, can connection errors sent to stdout or stderr have dates added?

Here is an example of the logs from lapin that was restarted 7 days ago:

root@iris:~# docker logs lapin_lapin_1
yarn run v1.22.4
$ node .
Attempting to contact CouchDB: http://iris.tor.c7a.ca:5984
CouchDB reachable.
Lapin has started. Listening on port 8081
yarn run v1.22.4
$ node .
Attempting to contact CouchDB: http://iris.tor.c7a.ca:5984
CouchDB reachable.
Lapin has started. Listening on port 8081
yarn run v1.22.4
$ node .
Attempting to contact CouchDB: http://iris.tor.c7a.ca:5984
CouchDB reachable.
Lapin has started. Listening on port 8081
yarn run v1.22.4
$ node .
Attempting to contact CouchDB: http://iris.tor.c7a.ca:5984
CouchDB (http://iris.tor.c7a.ca:5984) unreachable.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.4
$ node .
Attempting to contact CouchDB: http://iris.tor.c7a.ca:5984
CouchDB reachable.
Lapin has started. Listening on port 8081
CouchDB (http://iris.tor.c7a.ca:5984) unreachable.
CouchDB (http://iris.tor.c7a.ca:5984) unreachable.
CouchDB (http://iris.tor.c7a.ca:5984) unreachable.
CouchDB (http://iris.tor.c7a.ca:5984) unreachable.
root@iris:~# docker ps | grep lapin
397b0cafb337   docker.c7a.ca/lapin:20201030              "docker-entrypoint.s…"   2 months ago    Up 7 days   10.202.1.16:8085->8081/tcp                                                               lapin_lapin_1
root@iris:~# 
SaschaAdler commented 3 years ago

I'll adopt winston for this, like I did with Kivik.

RussellMcOrmond commented 3 years ago

https://github.com/crkn-rcdr/Access-Platform/issues/295 is a replacement for this ticket with the new tools. I don't know what the future is for Sapindale.