File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
client/src/main/java/io/split/engine Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,8 @@ public void stop() {
143143 lock .lock ();
144144 cleanUpResources ();
145145 _log .debug ("#2 - Stopped PushManagerImp" );
146+ } catch (Exception e ) {
147+ _log .debug ("Exception in stopping push manager: " + e .getMessage ());
146148 } finally {
147149 lock .unlock ();
148150 }
@@ -173,7 +175,9 @@ private boolean startSse(String token, String channels) {
173175 @ Override
174176 public void startWorkers () {
175177 try {
178+ _log .debug ("Starting featureflag worker" );
176179 _featureFlagsWorker .start ();
180+ _log .debug ("Starting segment worker" );
177181 _segmentWorker .start ();
178182 } catch (Exception e ) {
179183 _log .debug ("Exception in starting workers: " + e .getMessage ());
@@ -183,7 +187,9 @@ public void startWorkers() {
183187 @ Override
184188 public void stopWorkers () {
185189 try {
190+ _log .debug ("Stopping featureflag worker" );
186191 _featureFlagsWorker .stop ();
192+ _log .debug ("Stopping segment worker" );
187193 _segmentWorker .stop ();
188194 } catch (Exception e ) {
189195 _log .debug ("Exception in stopping workers: " + e .getMessage ());
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ public void start() {
2727 _thread = new Thread ( this );
2828 _thread .setName (String .format ("%s-worker" , _workerName ));
2929 _thread .start ();
30+ _log .debug (String .format ("%s Worker started ..." , _workerName ));
3031 } else {
3132 _log .debug (String .format ("%s Worker already running." , _workerName ));
3233 return ;
@@ -35,6 +36,7 @@ public void start() {
3536
3637 public void stop () {
3738 if (_running .compareAndSet (true , false )) {
39+ _log .debug (String .format ("%s stopping Worker" , _workerName ));
3840 _thread .interrupt ();
3941 _log .debug (String .format ("%s Worked stopped." , _workerName ));
4042 } else {
You can’t perform that action at this time.
0 commit comments