logging with MOZ_LOG on the try server

Preamble

NB: This is mostly for my own public reference. I had written about this elsewhere in 2016 but when arriving at a similar problem, failed to reproduce this. You may skip the following section, if you're familiar the terminology in the title

what is MOZ_LOG?

MOZ_LOG is an environment variable Firefox developers can use to tell specific code sections to emit verbose (or very verbose) status messages for some if its inner workings. This is also called Gecko Logging.

what is the try server

The try server is a repository that allows you to submit code without actually checking it into the public repository. Pushes to try get run through all of our tests, which helps identifying problems and test failures before they are part of our code.

logging with MOZ_LOG on the try server

There is a test failure on Mac OS X, that I can hardly debug. As a first step, I'll push this to the try-server with more logging output enabled.

My test is a mochitest, so I modified testing/mochitest/runtests.py:

diff --git a/testing/mochitest/runtests.py b/testing/mochitest/runtests.py
index 45545b4..5afdffd 100644
--- a/testing/mochitest/runtests.py
+++ b/testing/mochitest/runtests.py
@@ -91,7 +91,7 @@ here = os.path.abspath(os.path.dirname(__file__))
 # Try run will then put a download link for all log files
 # on tbpl.mozilla.org.

-MOZ_LOG = ""
+MOZ_LOG = "nsDocShellLogger:4,CSPParser:4,CSPUtils:4,CSPContext:4,CSP:4"

And now we play the waiting game.

Other posts

  1. logging with MOZ_LOG on the try server
  2. Challenge Write-up: Subresource Integrity in Service Workers
  3. Finding the SqueezeBox Radio Default SSH Passwort
  4. New CSP directive to make Subresource Integrity mandatory (`require-sri-for`)
  5. Firefox OS apps and beyond
  6. Teacher's Pinboard Write-up
  7. A CDN that can not XSS you: Using Subresource Integrity
  8. The Twitter Gazebo
  9. German Firefox 1.0 ad (OCR)
  10. My thoughts on Tor appliances
  11. Subresource Integrity
  12. Revoke App Permissions on Firefox OS
  13. (Self) XSS at Mozilla's internal Phonebook
  14. Tales of Python's Encoding
  15. On the X-Frame-Options Security Header
  16. html2dom
  17. Security Review: HTML sanitizer in Thunderbird
  18. Week 29 2013
  19. The First Post