mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-23 00:35:53 +08:00
Add basic JSON status logging.
This commit is contained in:
@@ -895,8 +895,10 @@ int CMMDVMHost::run()
|
||||
|
||||
setMode(MODE_IDLE);
|
||||
|
||||
LogInfo("MMDVMHost-%s is running", VERSION);
|
||||
writeJSONMessage("MMDVMHost is running");
|
||||
LogInfo("MMDVMHost-%s is starting", VERSION);
|
||||
LogInfo("Built %s %s (GitID #%.7s)", __TIME__, __DATE__, gitversion);
|
||||
|
||||
writeJSONMessage("MMDVMHost is starting");
|
||||
|
||||
while (!m_killed) {
|
||||
bool lockout = m_modem->hasLockout();
|
||||
@@ -1506,6 +1508,9 @@ int CMMDVMHost::run()
|
||||
CThread::sleep(5U);
|
||||
}
|
||||
|
||||
LogInfo("MMDVMHost is stopping");
|
||||
writeJSONMessage("MMDVMHost is stopping");
|
||||
|
||||
setMode(MODE_QUIT);
|
||||
|
||||
#if defined(USE_DMR) || defined(USE_P25)
|
||||
|
||||
Reference in New Issue
Block a user