Opened 12 years ago
Closed 10 years ago
Last modified 10 years ago
#11992 closed Patch - Bug Fix (fixed)
Patch: Prevent an invalid combination of logging options and adjust the --help output
| Reported by: | Owned by: | Bill Meek | |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.28 |
| Component: | MythTV - General | Version: | Master Head |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
According to mythAnyCommand --help nologserver (changeset:f124159):
Description: Disable all logging but console.
However, the three options in the above Summary are allowed. If used, then mythlogserver is started, however nothing is sent to the logs or the database (only the console, as expected.)
This patch will prevent the invalid combination and cause the following to be added to --help nologserver output:
Prevents the use of: --logpath --syslog --enable-dblog
Attachments (1)
Change History (15)
by , 12 years ago
| Attachment: | nologserver.patch.0 added |
|---|
comment:1 by , 11 years ago
| Owner: | set to |
|---|---|
| Resolution: | → fixed |
| Status: | new → closed |
comment:3 by , 11 years ago
| Milestone: | unknown → 0.27.5 |
|---|
comment:4 by , 11 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → new |
this ticket and description is wrong.
--nologserver prevent that a mythlogserver daemon is forked and run in the background.
Instead, logs are processed within a separate thread which log all the logs.
running a myth application with --nologserver is identical to compiling mythtv with --disable-mythlogserver
except of course , should people want to, they can still run mythlogserver daemon
comment:5 by , 11 years ago
IMHO, the bug is in the description of what --nologserver is supposed to do.
comment:7 by , 11 years ago
If memory serves, the reason I wrote the ticket was that someone on -users (list or channel) was using --nologserver and wasn't getting one of the other forms of logging. [Which they shouldn't expect because logging only goes to the console.]
I haven't seen any reports of users not getting logs since then. I would suggest the fix is valid based on the commit cited on the 1st line of the initial description (changeset:f124159.)
comment:8 by , 10 years ago
| Milestone: | 0.27.5 → 0.27.6 |
|---|
comment:9 by , 10 years ago
For additional history regarding the initial revert, please see the logs at 13:11:44 here:
irc.mythtv.org/ircLog/channel/4/2014-11-19
follow-up: 12 comment:10 by , 10 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
Convenience link to the chat log: http://irc.mythtv.org/ircLog/channel/4/2014-11-19:12:49:52/2014-11-19:13:13:44
Jya, can you clarify the intention of --nologserver? Your comment when reopening and your documentation of the option in the source code say different things. I'm tempted to let the documentation describe the implementation as it is now. Although I'm not sure how the implementation is now :)
add("--nologserver", "nologserver", false, "Disable all logging but console.", "")
->SetGroup("Logging");
comment:11 by , 10 years ago
Suggest a 0.28 milestone because implementing it now could prevent 0.27 user's backends from starting (if they have incorrect flags.)
I'll add it to the 0.28 release notes if fixed.
comment:12 by , 10 years ago
Replying to dekarl:
Convenience link to the chat log: http://irc.mythtv.org/ircLog/channel/4/2014-11-19:12:49:52/2014-11-19:13:13:44
Jya, can you clarify the intention of --nologserver? Your comment when reopening and your documentation of the option in the source code say different things. I'm tempted to let the documentation describe the implementation as it is now. Although I'm not sure how the implementation is now :)
did I add that option?
maybe easiest would be to rename that argument, because right now it's super confusing.
comment:13 by , 10 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
comment:14 by , 10 years ago
| Milestone: | 0.27.6 → 0.28 |
|---|---|
| Owner: | changed from to |
| Summary: | Patch: Prevent --syslog, --logpath and --enable-dblog if --nologserver is used → Patch: Prevent an invalid combination of logging options and adjust the --help output |

Patch tested on: v0.28-pre-655-g7f3d8f7