Skip to content
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

[chore] Remove logrus from trufflehog #1095

Merged
merged 4 commits into from
Feb 14, 2023
Merged

[chore] Remove logrus from trufflehog #1095

merged 4 commits into from
Feb 14, 2023

Conversation

mcastorina
Copy link
Collaborator

No description provided.

@mcastorina mcastorina requested review from a team as code owners February 11, 2023 04:39
@mcastorina mcastorina force-pushed the chore-logs branch 2 times, most recently from caab14e to 2c51263 Compare February 14, 2023 18:05
@@ -24,7 +22,7 @@ func BuildRegex(pattern string, specialChar string, length int) string {

func BuildRegexJWT(firstRange, secondRange, thirdRange string) string {
if RangeValidation(firstRange) || RangeValidation(secondRange) || RangeValidation(thirdRange) {
log.Error("Min value should not be greater than or equal to max")
panic("Min value should not be greater than or equal to max")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💀

Copy link
Collaborator Author

@mcastorina mcastorina Feb 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this seemed like an appropriate use of panic to me since this is more of a convenience function for some detectors. Previously we just logged an error and built the invalid regex anyway, so I think it's fine?

@mcastorina mcastorina merged commit 161e499 into main Feb 14, 2023
@mcastorina mcastorina deleted the chore-logs branch February 14, 2023 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants