typedb
typedb copied to clipboard
Display path to the config file at startup
Problem to Solve
TypeDB displays the data directory path in the startup sequence at the console (with ASCII logo). We should also display the configuration file path. That will enable users to find it easier.
Current Workaround
Check the default locations and the command to start the TypeDB server (whether it has --config argument).
Proposed Solution
Just display it at startup. And user will find the config at the exact displayed path. Easy and reliable.
Additional Information
One way to do it:
vladimir@Vladimirs-MacBook-Pro ~ % typedb server
================================================================
________ __ __ _____ _______ _____ _____
|__ __|\ \ / /| _ \ | _ || _ \ | _ \
| | \ \/ / | | | || | |__|| | | || | | |
| | \ / | |/ / | |___ | | | || |/ /
| | | | | __/ | ___| | | | || _ \
| | | | | | | | __ | | | || | | |
| | | | | | | |_| || |/ / | |/ /
|__| |__| |__| |_______||_____/ |_____/
A STRONGLY-TYPED DATABASE
================================================================
09:45:42.820 [main] INFO com.vaticle.typedb.core.server.TypeDBServer - TypeDB Server is now running and will keep this process alive.
09:45:42.825 [main] INFO com.vaticle.typedb.core.server.TypeDBServer - You can press CTRL+C to shutdown this server.
09:45:42.825 [main] INFO com.vaticle.typedb.core.server.TypeDBServer -
09:45:42.826 [main] INFO com.vaticle.typedb.core.server.TypeDBServer - version: 2.16.1
09:45:42.826 [main] INFO com.vaticle.typedb.core.server.TypeDBServer - listening to address: 0.0.0.0:1729
09:45:42.826 [main] INFO com.vaticle.typedb.core.server.TypeDBServer - using configuration file at: /usr/local/Cellar/typedb/2.16.1/libexec/server/conf/config.yml
09:45:42.826 [main] INFO com.vaticle.typedb.core.server.TypeDBServer - data directory configured to: /usr/local/var/typedb/data
09:45:42.826 [main] INFO com.vaticle.typedb.core.server.TypeDBServer - bootup completed in: 5633 ms
09:45:42.826 [main] INFO com.vaticle.typedb.core.server.TypeDBServer -