-
Notifications
You must be signed in to change notification settings - Fork 51
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
fix: Add stdout validation when setting logging output path #666
fix: Add stdout validation when setting logging output path #666
Conversation
validatedPaths = append(validatedPaths, p) | ||
continue | ||
} | ||
|
||
if f, err := os.OpenFile(p, os.O_CREATE|os.O_APPEND, 0666); err != nil { | ||
if f, err := os.OpenFile(p, os.O_CREATE|os.O_APPEND, 0644); err != nil { |
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.
@orpheuslummis I hope this makes you happy.
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.
making the codebase accessible even to the superstitious
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.
WOW and this is PR # 666
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.
Illuminati confirmed?
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.
can't escape 666
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.
- queue X-Files theme*
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.
this is hilarious!!!!!
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.
- queue X-Files theme
This played in my mind while I read this.
Codecov Report
@@ Coverage Diff @@
## develop #666 +/- ##
========================================
Coverage 61.68% 61.68%
========================================
Files 123 123
Lines 14925 14925
========================================
Hits 9206 9206
Misses 4859 4859
Partials 860 860
|
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.
LGTM
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.
Merged this onto #659 and can confirm that the file creation doesn't happen anymore! Thanks for the quick fix.
I wonder does that need to touch |
nice catch |
…twork#666) Relevant issue(s) Resolves sourcenetwork#665 Description This PR fixes the outputPath validation for the logging package. It ensures an stdout file isn't created during validation.
Relevant issue(s)
Resolves #665
Description
This PR fixes the outpath validation for the logging package. It ensures an stdout file isn't created during validation.
Tasks
How has this been tested?
manual testing
Specify the platform(s) on which this was tested: