Skip to content

Commit f1adf35

Browse files
committed
minor
1 parent 8223694 commit f1adf35

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ class Main(Daemon):
2020
config = None
2121

2222
def __init__(self):
23-
mp.set_start_method('forkserver')
2423
self.config = CLIOpts.config()
2524

2625
logging.basicConfig(
@@ -30,6 +29,7 @@ def __init__(self):
3029
)
3130
super().__init__(pidfile=self.config.pid_file())
3231
logging.debug(pprint.pformat(self.config.config))
32+
mp.set_start_method('forkserver')
3333

3434
def run(self):
3535
pumper = Pumper(

src/writer/processwriter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@ def open(self):
2424
pass
2525

2626
def process(self, event_or_events=None):
27+
logging.debug('class:%s starting process', __class__)
2728
writer = self.next_writer_builder.get()
2829
writer.insert(event_or_events)
2930
writer.close()
3031
writer.push()
3132
writer.destroy()
33+
logging.debug('class:%s ending process', __class__)
3234

3335
def insert(self, event_or_events=None):
3436
# event_or_events = [

0 commit comments

Comments
 (0)