mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-22 08:05:49 +08:00
Add basic JSON status logging.
This commit is contained in:
@@ -895,8 +895,10 @@ int CMMDVMHost::run()
|
|||||||
|
|
||||||
setMode(MODE_IDLE);
|
setMode(MODE_IDLE);
|
||||||
|
|
||||||
LogInfo("MMDVMHost-%s is running", VERSION);
|
LogInfo("MMDVMHost-%s is starting", VERSION);
|
||||||
writeJSONMessage("MMDVMHost is running");
|
LogInfo("Built %s %s (GitID #%.7s)", __TIME__, __DATE__, gitversion);
|
||||||
|
|
||||||
|
writeJSONMessage("MMDVMHost is starting");
|
||||||
|
|
||||||
while (!m_killed) {
|
while (!m_killed) {
|
||||||
bool lockout = m_modem->hasLockout();
|
bool lockout = m_modem->hasLockout();
|
||||||
@@ -1506,6 +1508,9 @@ int CMMDVMHost::run()
|
|||||||
CThread::sleep(5U);
|
CThread::sleep(5U);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LogInfo("MMDVMHost is stopping");
|
||||||
|
writeJSONMessage("MMDVMHost is stopping");
|
||||||
|
|
||||||
setMode(MODE_QUIT);
|
setMode(MODE_QUIT);
|
||||||
|
|
||||||
#if defined(USE_DMR) || defined(USE_P25)
|
#if defined(USE_DMR) || defined(USE_P25)
|
||||||
|
|||||||
@@ -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
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
2
Utils.h
2
Utils.h
@@ -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
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
Reference in New Issue
Block a user