-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Turn off poison detection by default for AS/AT #484
Turn off poison detection by default for AS/AT #484
Conversation
add integration tests with poison records and acra-translator remove copy-paste code in tests, re-use same for on/off poison record detection
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
@@ -482,16 +482,19 @@ func realMain() error { | |||
|
|||
poisonCallbacks := poison.NewCallbackStorage() | |||
if *detectPoisonRecords { | |||
log.WithField(logging.FieldKeyEventCode, logging.EventCodePoisonRecordDetectionMessage).Infoln("Turned on poison record detection") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 valuable logs, thanx!
os.Exit(1) | ||
log.Errorln("executed code after os.Exit") | ||
log.WithField(logging.FieldKeyEventCode, logging.EventCodePoisonRecordDetectionMessage).Errorln("executed code after os.Exit") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log.WithField(logging.FieldKeyEventCode, logging.EventCodePoisonRecordDetectionMessage).Errorln("executed code after os.Exit") | |
log.WithField(logging.FieldKeyEventCode, logging.EventCodePoisonRecordDetectionMessage).Errorln("Executed code after os.Exit") |
should it also start from the capital letter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, this code should not be executed because after os.Exit
. It's just honeypot that we check in our integration tests that it's not executed and service stopped.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i see
# how long wait forked process to respond | ||
FORK_TIMEOUT = 2 | ||
# seconds for sleep call after failed polling forked process | ||
FORK_FAIL_SLEEP = 0.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Co-authored-by: vixentael <vixentael@users.noreply.github.com>
poison_detect_enable
flag for acra-[server|translator] product-docs#230Checklist
with new changes