Skip to content

Commit 9feba10

Browse files
committed
Rename logging class
1 parent 069659f commit 9feba10

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

testgres/testgres.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)