mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 23:45:49 +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)
|
||||
|
||||
@@ -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
|
||||
|
||||
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
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
Reference in New Issue
Block a user