@@ -107,9 +107,8 @@ class EmotionAI {
107107 // If the distance over the threshold, then will consider it as scroll
108108 if (distance > kTouchSlop) {
109109 hasScrolled[event.pointer] = true ;
110- debugPrint (
111- 'Pointer ${event .pointer }: Scroll/Drag détecté (distance > $kTouchSlop )' ,
112- );
110+ Flagship .logger (Level .DEBUG ,
111+ "Pointer ${event .pointer }: Scroll/Drag détecté (distance > $kTouchSlop )" );
113112 }
114113 }
115114 }
@@ -169,8 +168,7 @@ class EmotionAI {
169168 GestureBinding .instance.pointerRouter
170169 .addGlobalRoute (_emotionAIGlobalPointerRoute);
171170 } catch (e) {
172- // Todo later add flagship logger
173- print (e);
171+ Flagship .logger (Level .EXCEPTIONS , e.toString ());
174172 }
175173 }
176174
@@ -236,7 +234,6 @@ class EmotionAI {
236234 sendEmotionEvent (event);
237235 } else if (deltaTime <= FSAIDuration120 ) {
238236 sendEmotionEvent (event);
239- print ("" );
240237 Flagship .logger (
241238 Level .INFO , "Send last emotion event and stop the collect" );
242239 stopCollecting ();
@@ -252,7 +249,6 @@ class EmotionAI {
252249 this .currentScreenName = screenName;
253250 FSEmotionPageView eventPage = FSEmotionPageView (this .currentScreenName);
254251 this .sendEmotionEvent (eventPage).whenComplete (() {
255- print (" " );
256252 Flagship .logger (Level .INFO , "Send pageview when app change screen" );
257253 });
258254 }
0 commit comments