[SERVER-7140] Print same information that prints on startup when the log is rotated Created: 24/Sep/12 Updated: 11/Jul/16 Resolved: 08/Oct/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Diagnostics, Logging |
| Affects Version/s: | None |
| Fix Version/s: | 2.5.3 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Spencer Brody (Inactive) | Assignee: | Kyle Erf |
| Resolution: | Done | Votes: | 15 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||
| Description |
|
When getting a full log for analysis, if the server's been running for a long time so you just get the logs from the last day or two, and the logs are rotated each night, you don't get the startup message with info like mongodb version and startup options. Would be helpful for debugging if that information printed at the top of every log file when the logRotate command is called. |
| Comments |
| Comment by auto [ 03/Oct/13 ] | |
|
Author: {u'username': u'3rf', u'name': u'Kyle Erf', u'email': u'erf@mongodb.com'}Message: Signed-off-by: Matt Kangas <matt.kangas@mongodb.com> | |
| Comment by Matt Kangas [ 27/Aug/13 ] | |
|
Eliot's feedback:
| |
| Comment by Thomas Rueckstiess [ 15/Aug/13 ] | |
|
It should print such a line not just on log rotation but ideally every hour. That way we know that if we get >1h of log, we have all the information needed to diagnose problems. Maybe something like this line:
Things that should be included in this line:
|