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):
8080 return '\n ERROR: {0}\n CMD: {1}' .format (self .error_text , self .cmd )
8181
8282
83- class AsyncFileReader (threading .Thread ):
83+ class LogWriter (threading .Thread ):
8484 '''
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
8787 '''
8888
8989 def __init__ (self , node_name , fd ):
@@ -120,7 +120,7 @@ def log_watch(node_name, pg_logname):
120120 to python logging system
121121 '''
122122
123- reader = AsyncFileReader (node_name , open (pg_logname , 'r' ))
123+ reader = LogWriter (node_name , open (pg_logname , 'r' ))
124124 reader .start ()
125125
126126 global util_threads
You can’t perform that action at this time.
0 commit comments