fluree / core

Fluree releases and public bug reports
0 stars 0 forks source link

`fluree/server` should log out git sha of `db` repo on startup #106

Open Jackamus29 opened 1 month ago

Jackamus29 commented 1 month ago

Description

It's a common follow-up question when our Core devs are helping troubleshoot an issue: "That should be working, what version of db are you using?". It would be great if fluree/server would spit this info out on start up so it can be easily provided in these cases.

Expected

2024-05-09 08:59:39 12:59:39.852 [main] INFO fluree.server.main - Starting fluree/server with profile: :docker and db sha: 74bc6775c11cd740263e527f756d3ab18c60d6b0 2024-05-09 08:59:39 12:59:39.971 [main] DEBUG fluree.server.components.fluree - Connecting to fluree with options: {:remote-servers nil, :method :file, :parallelism 4, :storage-path "data", :cache-max-mb 1000, :defaults {:context-type :string, :indexer {:reindex-min-bytes 1000, :reindex-max-bytes 10000000}, :context nil}} 2024-05-09 08:59:39 12:59:39.989 [main] DEBUG fluree.server.components.consensus - Starting raft consensus with config: {:ledger-directory nil, :consensus-type :raft, :private-keys nil, :consensus-this-server "/ip4/127.0.0.1/tcp/62071", :log-directory nil, :consensus-servers "/ip4/127.0.0.1/tcp/62071", :encryption-key nil, :storage-type :file, :private-key nil, :open-api true} ... and so on

cap10morgan commented 1 month ago

This should probably log the db version when available, and fall back to logging the git sha when it isn't.