Open lolski opened 3 years ago
[Triaged] @haikalpribadi I am moving it to the backlog since this refactor is not critical
After further discussion, we have agreed that we should keep the --debug
flag.
In the ideal scenario, the --debug
flag will switch on the dev
JAR that contains debugging symbols of the storage library (eg. RocksDB). If we stick with just that behaviour, we should rename it to --devDependencies
or --devStorage
, etc.
Otherwise, --debug
could also take a level --debug=2
which will automatically enable some level of verbose logging throughout the codebase.
TypeDB can be ran in debug mode, in which it'll run RocksDB's dev release, if it is available.
The detection of the debug flag is done in bash since we need to configure the classpath before TypeDB is started. It is complicated if you want do it in TypeDB, after bootup.
However, we may decide that the
--debug
flag is not critical and/or RocksDB is replaced or never used in dev mode anyway, so we can remove the flag.