couchdb icon indicating copy to clipboard operation
couchdb copied to clipboard

dev/run: print log dir on startup

Open alxndrsn opened this issue 1 year ago • 0 comments

Overview

When running couch from source, logs do not appear on stdout. The actual location of the logs is not documented. It would be helpful to make log location clear.

Before

$ ./dev/run
[ * ] Setup environment ... ok
[ * ] Ensure CouchDB is built ... ok
[ * ] Ensure Erlang boot script exists ... ok
[ * ] Prepare configuration files ... ok
[ * ] Start node node1 ... ok
[ * ] Start node node2 ... ok
[ * ] Start node node3 ... ok
[ * ] Check node at http://127.0.0.1:15984/ ... ok
[ * ] Check node at http://127.0.0.1:25984/ ... ok
[ * ] Check node at http://127.0.0.1:35984/ ... ok
[ * ] Running cluster setup ... ok
[ * ] Developers cluster is set up at http://127.0.0.1:15984.
Admin username: root
Password: rfb7saVr
Time to hack! ...

After

$ ./dev/run
[ * ] Setup environment ... ok
[ * ] Ensure CouchDB is built ... ok
[ * ] Ensure Erlang boot script exists ... ok
[ * ] Prepare configuration files ... ok
[ * ] Start node node1 ... ok
[ * ] Start node node2 ... ok
[ * ] Start node node3 ... ok
[ * ] Check node at http://127.0.0.1:15984/ ... ok
[ * ] Check node at http://127.0.0.1:25984/ ... ok
[ * ] Check node at http://127.0.0.1:35984/ ... ok
[ * ] Running cluster setup ... ok
[ * ] Developers cluster is set up at http://127.0.0.1:15984.
Admin username: root
Password: asdf1234
Logs: /couchdb/dev/logs
Time to hack! ...

Testing recommendations

Run ./dev/run.

Related Issues or Pull Requests

None known.

Checklist

  • [x] Code is written and works correctly
  • ~Changes are covered by tests~
  • [x] Any new configurable parameters are documented in rel/overlay/etc/default.ini
  • ~Documentation changes were made in the src/docs folder~
  • ~Documentation changes were backported (separated PR) to affected branches~

Removed checklist items as I think this change is self-documenting, and does not require tests.

alxndrsn avatar Jun 29 '24 07:06 alxndrsn