Skip to content

Commit 288bd98

Browse files
Sync master into develop (#850)
<!-- Thanks for the contribution, this is awesome. --> # PR Details This PR is to Merge temporary intermediate branch create from master back into develop with hotfix changes for 7.11.0 ## Description <!--- Describe your changes in detail --> ## Related GitHub Issue <!--- This project only accepts pull requests related to open GitHub issues or Jira Keys --> <!--- If suggesting a new feature or change, please discuss it in an issue first --> <!--- If fixing a bug, there should be an issue describing it with steps to reproduce --> <!--- Please DO NOT name partially fixed issues, instead open an issue specific to this fix --> <!--- Please link to the issue here: --> ## Related Jira Key <!-- e.g. CAR-123 --> ## Motivation and Context <!--- Why is this change required? What problem does it solve? --> ## How Has This Been Tested? <!--- Please describe in detail how you tested your changes. --> <!--- Include details of your testing environment, and the tests you ran to --> <!--- see how your change affects other areas of the code, etc. --> ## Types of changes <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [x] Defect fix (non-breaking change that fixes an issue) - [ ] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that cause existing functionality to change) ## Checklist: <!--- Go over all the following points, and put an `x` in all the boxes that apply. --> <!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> - [ ] I have added any new packages to the sonar-scanner.properties file - [ ] My change requires a change to the documentation. - [x] I have updated the documentation accordingly. - [x] I have read the [**CONTRIBUTING**](https://github.com/usdot-fhwa-stol/carma-platform/blob/develop/Contributing.md) document. - [ ] I have added tests to cover my changes. - [ ] All new and existing tests passed.
2 parents 7ad12e9 + 68c9e5f commit 288bd98

File tree

3 files changed

+23
-8
lines changed

3 files changed

+23
-8
lines changed

docs/Release_notes.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
V2X-Hub Release Notes
22
---------------------------------
33

4+
Version 7.11.1, released Jan 30th, 2026
5+
--------------------------------------------------------
6+
7+
**Summary:**
8+
V2X Hub release 7.11.1 is a hotfix for version 7.11.0. It fixes the V2X Hub JSON Message Logger to prevent existing logs from being overwritten when the log file reaches its file size limit.
9+
10+
**Fixes**
11+
- Pull Requests: [V2X-Hub PR #835](https://github.com/usdot-fhwa-OPS/V2X-Hub/pull/835)
12+
413
Version 7.11.0, released Dec 24th, 2025
514
--------------------------------------------------------
615

src/v2i-hub/JSONMessageLoggerPlugin/manifest.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@
3030
},
3131
{
3232
"key": "MaxFileSize",
33-
"default": "10",
34-
"description": "Maximum size of the log file in bytes before it is rotated in MB"
33+
"default": "700",
34+
"description": "Maximum size of the log file in bytes before it is rotated in MB. 1 day of SPAT, MAP, and TIM data is approximately 500 MB."
3535
},
3636
{
3737
"key": "MaxFiles",
3838
"default": "5",
39-
"description": "Maximum number of log files to keep before deleting the oldest"
39+
"description": "Maximum number of log files to keep before deleting the oldest. This does not include the active log file so 5 here will be 5 old log files plus the currently active log file until file size roll over limit is hit. This should keep roughly 5 days of V2X data or 3.5 GBs"
4040
},
4141
{
4242
"key": "LogDir",
43-
"default": "/var/log/tmx/",
43+
"default": "/var/log/tmx/json/",
4444
"description": "Directory where log files will be stored"
4545
}
4646
]

src/v2i-hub/JSONMessageLoggerPlugin/src/JSONMessageLoggerPlugin.cpp

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,35 @@ namespace JSONMessageLoggerPlugin {
3232

3333
void JSONMessageLoggerPlugin::initLogging(unsigned int maxFileSize, unsigned int maxFiles, const std::string &logDir)
3434
{
35+
PLOG(tmx::utils::logDEBUG) << "Initializing JSON Message Logger with MaxFileSize: "
36+
<< maxFileSize << " MB, MaxFiles: " << maxFiles << ", LogDir: " << logDir;
3537
// Common attributes (timestamp, etc.)
3638
boost::log::add_common_attributes();
3739

3840
// RX Logger
3941
boost::log::add_file_log
4042
(
41-
boost::log::keywords::file_name = logDir + "j2735Rx_%Y-%m-%d.log",
43+
boost::log::keywords::file_name = logDir+"j2735Rx_%Y-%m-%d_%H-%M-%S.%N.log",
44+
boost::log::keywords::target = logDir,
4245
boost::log::keywords::rotation_size = maxFileSize * 1024 * 1024,
4346
boost::log::keywords::time_based_rotation = boost::log::sinks::file::rotation_at_time_point(0, 0, 0),
4447
boost::log::keywords::format = boost::log::expressions::stream << boost::log::expressions::smessage,
4548
boost::log::keywords::filter = a_channel == "rx", // Filter for "rx" channel messages
46-
boost::log::keywords::max_files = maxFiles // Set maximum number of log files
49+
boost::log::keywords::max_files = maxFiles, // Set maximum number of log files
50+
boost::log::keywords::auto_flush = true
4751
);
4852

4953
// TX Logger
5054
boost::log::add_file_log
5155
(
52-
boost::log::keywords::file_name = logDir+"j2735Tx_%Y-%m-%d.log",
56+
boost::log::keywords::file_name = logDir+"j2735Tx_%Y-%m-%d_%H-%M-%S.%N.log",
57+
boost::log::keywords::target = logDir,
5358
boost::log::keywords::rotation_size = maxFileSize * 1024 * 1024,
5459
boost::log::keywords::time_based_rotation = boost::log::sinks::file::rotation_at_time_point(0, 0, 0),
5560
boost::log::keywords::format = boost::log::expressions::stream << boost::log::expressions::smessage,
5661
boost::log::keywords::filter = a_channel == "tx", // Filter for "tx" channel messages
57-
boost::log::keywords::max_files = maxFiles // Set maximum number of log files
62+
boost::log::keywords::max_files = maxFiles, // Set maximum number of log files
63+
boost::log::keywords::auto_flush = true
5864

5965
);
6066
rxLogger = boost::log::sources::severity_channel_logger< boost::log::trivial::severity_level , std::string>(boost::log::keywords::channel = "rx");

0 commit comments

Comments
 (0)