File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -80,10 +80,10 @@ def __str__(self):
80
80
return '\n ERROR: {0}\n CMD: {1}' .format (self .error_text , self .cmd )
81
81
82
82
83
- class AsyncFileReader (threading .Thread ):
83
+ class LogWriter (threading .Thread ):
84
84
'''
85
- Helper class to implement asynchronous reading of a file
86
- in a separate thread.
85
+ Helper class to implement reading from postgresql.log and redirect
86
+ it python logging
87
87
'''
88
88
89
89
def __init__ (self , node_name , fd ):
@@ -120,7 +120,7 @@ def log_watch(node_name, pg_logname):
120
120
to python logging system
121
121
'''
122
122
123
- reader = AsyncFileReader (node_name , open (pg_logname , 'r' ))
123
+ reader = LogWriter (node_name , open (pg_logname , 'r' ))
124
124
reader .start ()
125
125
126
126
global util_threads
You can’t perform that action at this time.
0 commit comments