Add basic JSON status logging.

This commit is contained in:
Jonathan Naylor
2023-07-23 14:32:53 +01:00
parent ba2a92e32e
commit b33a6f997e
3 changed files with 9 additions and 4 deletions

View File

@@ -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)

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2009,2014,2015,2016,2021,2022 Jonathan Naylor, G4KLX
* Copyright (C) 2009,2014,2015,2016,2021,2022,2023 Jonathan Naylor, G4KLX
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2009,2014,2015,2021,2022 by Jonathan Naylor, G4KLX
* Copyright (C) 2009,2014,2015,2021,2022,2023 by Jonathan Naylor, G4KLX
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by