Browse files

[error] Include config in the report

  • Loading branch information...
1 parent 4426a06 commit 62bb6195326c8de510de2a10c00ad84f4bc65fcd @Eugeny Eugeny committed Oct 12, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 ajenti/error.py
View
6 ajenti/error.py
@@ -34,13 +34,17 @@ def make_report(app, err):
'Detected platform: %s\n' +
'Detected distro: %s\n' +
'Python: %s\n\n' +
- 'Loaded plugins:\n%s\n\n' +
+ 'Config path: %s\n\n' +
+ 'Config content:\n%s\n' +
+ '\n\nLoaded plugins:\n%s\n\n' +
'%s')
% (version,
shell('uname -a'),
detect_platform(),
detect_distro(),
'.'.join([str(x) for x in platform.python_version_tuple()]),
+ app.config.filename,
+ open(app.config.filename).read(),
pr,
err
))

0 comments on commit 62bb619

Please sign in to comment.