Skip to content

Commit

Permalink
java-cdk-destination: mark logs as debug (#36227)
Browse files Browse the repository at this point in the history
  • Loading branch information
subodh1810 authored Mar 18, 2024
1 parent 875e5df commit ed3b87f
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ class GlobalAsyncStateManager(private val memoryManager: GlobalMemoryManager) {
*/
fun flushStates(outputRecordCollector: Consumer<AirbyteMessage?>) {
var bytesFlushed: Long = 0L
logger.info { "Flushing states" }
synchronized(lock) {
for (entry: Map.Entry<StreamDescriptor, LinkedBlockingDeque<Long>?> in
descToStateIdQ.entries) {
Expand Down Expand Up @@ -184,7 +185,7 @@ class GlobalAsyncStateManager(private val memoryManager: GlobalMemoryManager) {
stateIdToCounterForPopulatingDestinationStats[oldestStateId]!!
.toDouble()

logger.info {
logger.debug {
"State with arrival number ${stateMessage.arrivalNumber} emitted from thread ${Thread.currentThread().name} at ${Instant.now()}"
}
val message: AirbyteMessage =
Expand All @@ -209,7 +210,7 @@ class GlobalAsyncStateManager(private val memoryManager: GlobalMemoryManager) {
}
}
}

logger.info { "Flushing states complete" }
freeBytes(bytesFlushed)
}

Expand Down Expand Up @@ -345,7 +346,7 @@ class GlobalAsyncStateManager(private val memoryManager: GlobalMemoryManager) {
SENTINEL_GLOBAL_DESC,
)
synchronized(lock) {
logger.info { "State with arrival number $arrivalNumber received" }
logger.debug { "State with arrival number $arrivalNumber received" }
stateIdToState[getStateId(resolvedDescriptor)] =
ImmutablePair.of(
StateMessageWithArrivalNumber(
Expand Down

0 comments on commit ed3b87f

Please sign in to comment.