@@ -114,13 +114,13 @@ public synchronized void printCounts(boolean isFinal) {
114
114
msg += " Final" ;
115
115
logger .info ("################################################################################################" );
116
116
}
117
- logger .info (msg + " Read Record Count: " + readCounter .get ());
118
- logger .info (msg + " Read Mismatch Count: " + mismatchCounter .get ());
119
- logger .info (msg + " Corrected Mismatch Count: " + correctedMismatchCounter .get ());
120
- logger .info (msg + " Read Missing Count: " + missingCounter .get ());
121
- logger .info (msg + " Corrected Missing Count: " + correctedMissingCounter .get ());
122
- logger .info (msg + " Read Valid Count: " + validCounter .get ());
123
- logger .info (msg + " Read Skipped Count: " + skippedCounter .get ());
117
+ logger .info ("{} Read Record Count: {}" , msg , readCounter .get ());
118
+ logger .info ("{} Mismatch Record Count: {}" , msg , mismatchCounter .get ());
119
+ logger .info ("{} Corrected Mismatch Record Count: {}" , msg , correctedMismatchCounter .get ());
120
+ logger .info ("{} Missing Record Count: {}" , msg , missingCounter .get ());
121
+ logger .info ("{} Corrected Missing Record Count: {}" , msg , correctedMissingCounter .get ());
122
+ logger .info ("{} Valid Record Count: {}" , msg , validCounter .get ());
123
+ logger .info ("{} Skipped Record Count: {}" , msg , skippedCounter .get ());
124
124
if (isFinal ) {
125
125
logger .info ("################################################################################################" );
126
126
}
@@ -129,13 +129,13 @@ public synchronized void printCounts(boolean isFinal) {
129
129
private void diff (Row sourceRow , Row astraRow ) {
130
130
if (astraRow == null ) {
131
131
missingCounter .incrementAndGet ();
132
- logger .error ("Missing target row found for key: " + getKey (sourceRow ));
132
+ logger .error ("Missing target row found for key: {}" , getKey (sourceRow ));
133
133
//correct data
134
134
135
135
if (autoCorrectMissing ) {
136
136
astraSession .execute (bindInsert (astraInsertStatement , sourceRow , null ));
137
137
correctedMissingCounter .incrementAndGet ();
138
- logger .error ("Inserted missing row in target: " + getKey (sourceRow ));
138
+ logger .error ("Inserted missing row in target: {}" , getKey (sourceRow ));
139
139
}
140
140
141
141
return ;
@@ -144,7 +144,7 @@ private void diff(Row sourceRow, Row astraRow) {
144
144
String diffData = isDifferent (sourceRow , astraRow );
145
145
if (!diffData .isEmpty ()) {
146
146
mismatchCounter .incrementAndGet ();
147
- logger .error ("Mismatch row found for key: " + getKey ( sourceRow ) + " Mismatch: " + diffData );
147
+ logger .error ("Mismatch row found for key: {} Mismatch: {}" , getKey ( sourceRow ), diffData );
148
148
149
149
if (autoCorrectMismatch ) {
150
150
if (isCounterTable ) {
@@ -153,7 +153,7 @@ private void diff(Row sourceRow, Row astraRow) {
153
153
astraSession .execute (bindInsert (astraInsertStatement , sourceRow , null ));
154
154
}
155
155
correctedMismatchCounter .incrementAndGet ();
156
- logger .error ("Updated mismatch row in target: " + getKey (sourceRow ));
156
+ logger .error ("Updated mismatch row in target: {}" , getKey (sourceRow ));
157
157
}
158
158
159
159
return ;
0 commit comments