diff options
| author | Tim D. Smith | 2016-08-11 00:22:18 -0700 |
|---|---|---|
| committer | Tim D. Smith | 2016-08-14 12:21:50 -0700 |
| commit | 2aad3e052a13ac507b1f8864273a7de2d259c15f (patch) | |
| tree | 7afdb1e2fe9bb4c2e63a1d11508c1463b9352c2c /Library | |
| parent | 4111d29c8102bedb103cebdab594248503666913 (diff) | |
| download | brew-2aad3e052a13ac507b1f8864273a7de2d259c15f.tar.bz2 | |
Don't report .pyc file writes in sandbox logs
These are never fatal and often confusing.
Fixes #683.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/sandbox.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/sandbox.rb b/Library/Homebrew/sandbox.rb index 501a43e4d..4823baf7f 100644 --- a/Library/Homebrew/sandbox.rb +++ b/Library/Homebrew/sandbox.rb @@ -95,6 +95,10 @@ class Sandbox -k Sender sandboxd ] logs = Utils.popen_read("syslog", *syslog_args) + + # These messages are confusing and non-fatal, so don't report them. + logs = logs.lines.reject{ |l| l.match(/^.*Python\(\d+\) deny file-write.*pyc$/) }.join + unless logs.empty? if @logfile log = open(@logfile, "w") |
