From 2aad3e052a13ac507b1f8864273a7de2d259c15f Mon Sep 17 00:00:00 2001 From: "Tim D. Smith" Date: Thu, 11 Aug 2016 00:22:18 -0700 Subject: [PATCH] Don't report .pyc file writes in sandbox logs These are never fatal and often confusing. Fixes #683. --- Library/Homebrew/sandbox.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/sandbox.rb b/Library/Homebrew/sandbox.rb index 501a43e4db..4823baf7f8 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")