Skip to content

Commit

Permalink
Disable sentry if middlewared code is an NFS mount
Browse files Browse the repository at this point in the history
  • Loading branch information
themylogin committed Apr 23, 2021
1 parent 9da23d7 commit eaf955c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/middlewared/middlewared/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,11 @@ def is_disabled(self):

if os.path.exists(self.sentinel_file_path) or 'CRASHREPORTING_DISABLED' in os.environ:
return True
else:
return False

if os.stat(__file__).st_dev != os.stat('/').st_dev:
return True

return False

def report(self, exc_info, log_files):
""""
Expand Down

0 comments on commit eaf955c

Please sign in to comment.