Email log comment vs actual behavior #28
Closed
codesterribly
started this conversation in
Ideas
Replies: 1 comment
-
|
I think the "Requires LogAll=yes" was left over from an earlier version of the script. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Bug, or am I missing something?: Email Log Behavior Does Not Match Comment in
backup_linux_plex.configSummary
The comment in
backup_linux_plex.configstates that emailing logs “requires LogAll=yes,” but the backup script (Linux_Plex_Backup.sh) does not checkLogAllbefore sending email. The actual behavior is: if both email fields are set, an email is always sent, regardless ofLogAll. This creates inconsistent and misleading behavior.Files Involved
1.
backup_linux_plex.config(lines 18–25)Linux_Plex_Backup.sh (lines 162–166)
This condition does not reference LogAll.
Actual Behavior
If both to_email_address and from_email_address are set, an email is sent every time.
LogAll is ignored when deciding whether to send email.
Expected Behavior (based on config comments)
Log emails should only be sent when:
LogAll=yes
And both email fields are set
Impact
Users may receive unexpected email.
Documentation in the config file is misleading.
Behavior is unclear for new users trying to follow the documented meaning of LogAll.
Proposed Fixes
Option A: Update the configuration comment (simplest)
Replace this block in backup_linux_plex.config:
With this block:
No code changes required.
Option B: Update the script logic to match the comment
Modify this line in Linux_Plex_Backup.sh:
To:
There is a clear mismatch between documentation and implementation. Either the comment in the configuration file or the condition in the script should be updated to ensure consistent and predictable behavior.
Beta Was this translation helpful? Give feedback.
All reactions