mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add the git tag to the compile (RIPD-238)
This commit is contained in:
committed by
Vinnie Falco
parent
50f9b68d61
commit
c841f8b360
@@ -79,7 +79,10 @@ class Git(object):
|
||||
def __init__(self, env):
|
||||
self.exists = env.Detect('git')
|
||||
if self.exists:
|
||||
self.commit_id = _execute('git describe --tags')
|
||||
try:
|
||||
self.commit_id = _execute('git describe --tags')
|
||||
except:
|
||||
self.exists = False
|
||||
else:
|
||||
self.commit_id = None
|
||||
|
||||
|
||||
@@ -853,26 +853,13 @@ public:
|
||||
// Initialize the Validators object with Config information.
|
||||
void prepareValidators ()
|
||||
{
|
||||
#if 1
|
||||
{
|
||||
std::vector <std::string> const& strings (getConfig().validators);
|
||||
m_validators->addStrings ("rippled.cfg", strings);
|
||||
}
|
||||
#endif
|
||||
m_validators->addStrings ("rippled.cfg", getConfig().validators);
|
||||
|
||||
#if 1
|
||||
if (! getConfig().getValidatorsURL().empty())
|
||||
{
|
||||
m_validators->addURL (getConfig().getValidatorsURL());
|
||||
}
|
||||
#endif
|
||||
|
||||
#if 1
|
||||
if (getConfig().getValidatorsFile() != beast::File::nonexistent ())
|
||||
{
|
||||
m_validators->addFile (getConfig().getValidatorsFile());
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
@@ -887,7 +874,11 @@ public:
|
||||
|
||||
void onStart ()
|
||||
{
|
||||
m_journal.debug << "Application starting";
|
||||
#ifdef GIT_COMMIT_ID
|
||||
m_journal.info << "Application starting. Build is " << GIT_COMMIT_ID;
|
||||
#else
|
||||
m_journal.info << "Application starting.";
|
||||
#endif
|
||||
|
||||
m_sweepTimer.setExpiration (10);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user