@@ -126,6 +126,7 @@ private static List<Map> parseJsonData( String data ) throws Exception {
126126 protected static void handle ( Properties params ) throws Exception {
127127 GithubIssueInfo info = new GithubIssueInfo (params );
128128 try {
129+ logger .debug ( "params " +params );
129130 doHandle ( info );
130131 } catch ( Exception e ) {
131132 throw e ;
@@ -142,6 +143,7 @@ private static void doHandle( GithubIssueInfo info ) throws Exception {
142143 List <List <String >> lines = new ArrayList <List <String >>();
143144
144145 String cacheMode = info .getProperty ( GithubIssueExport .ARG_ASSIGNEE_DATE_MODE , GithubIssueExport .ARG_ASSIGNEE_DATE_MODE_SKIP );
146+ logger .info ( "cache-mode : " +cacheMode );
145147
146148 String lang = getLocale ( info .getProperty ( ARG_LANG ) ).toString ();
147149 // data read
@@ -184,9 +186,11 @@ private static void doHandle( GithubIssueInfo info ) throws Exception {
184186 if ( assignee != null ) {
185187 currentLine .add ( String .valueOf ( assignee .get ( "login" ) ) );
186188 String assignDate = null ;
187- if ( activeCache ( cacheMode ) ) {
189+ boolean activeCache = activeCache ( cacheMode );
190+ if ( activeCache ) {
188191 assignDate = info .getCacheEntry ( issueId , GithubIssueConfig .FIELD_ASSIGN_DATE );
189192 }
193+ logger .info ( "activeCache : " +activeCache +" - issueId:" +issueId +" , assign date " +assignDate );
190194 if ( assignDate == null ) {
191195 if ( "closed" .equalsIgnoreCase ( state ) && ARG_ASSIGNEE_DATE_MODE_SKIP_CLOSED .equals ( cacheMode ) ) {
192196 // just skip
@@ -200,7 +204,7 @@ private static void doHandle( GithubIssueInfo info ) throws Exception {
200204 String eventType = String .valueOf ( currentEvent .get ( "event" ) );
201205 if ( eventType .equalsIgnoreCase ( "assigned" ) ) {
202206 assignDate = String .valueOf ( currentEvent .get ( "created_at" ) );
203- if ( activeCache ( cacheMode ) ) {
207+ if ( activeCache ) {
204208 info .addCacheEntry ( issueId , GithubIssueConfig .FIELD_ASSIGN_DATE , assignDate );
205209 }
206210 }
0 commit comments