|
@@ -1100,6 +1100,7 @@ DEFAULTS = {
|
|
|
'nick_base': 'test',
|
|
|
'valgrind_settings': None,
|
|
|
'add_environ_vars': None,
|
|
|
+ 'log_files': ['notice', 'info', 'debug'],
|
|
|
}
|
|
|
|
|
|
|
|
@@ -1152,6 +1153,13 @@ class TorEnviron(chutney.Templating.Environ):
|
|
|
def __init__(self, parent=None, **kwargs):
|
|
|
chutney.Templating.Environ.__init__(self, parent=parent, **kwargs)
|
|
|
|
|
|
+ def _get_log_file_lines(self, my):
|
|
|
+ lines = []
|
|
|
+ for log_type in self['log_files']:
|
|
|
+ path = os.path.join(self['dir'], log_type) + '.log'
|
|
|
+ lines.append('Log {0} file {1}'.format(log_type, path))
|
|
|
+ return '\n'.join(lines)
|
|
|
+
|
|
|
def _get_orport(self, my):
|
|
|
return my['orport_base'] + my['nodenum']
|
|
|
|