Created
April 2, 2013 15:46
-
-
Save ejucovy/5293261 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
${chrome.logging.debug("This is a log message in a genshi template")} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/trac/web/chrome.py | |
+++ b/trac/web/chrome.py | |
@@ -660,6 +660,7 @@ class Chrome(Component): | |
chrome = {'metas': [], 'links': {}, 'scripts': [], 'script_data': {}, | |
'ctxtnav': [], 'warnings': [], 'notices': []} | |
+ chrome['logging'] = self.log | |
req.chrome = chrome | |
htdocs_location = self.htdocs_location or req.href.chrome('common') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment