Skip to content

Commit 421b610

Browse files
authored
adjust log level in Producer (#158)
1 parent 31078c1 commit 421b610

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

client/src/main/kotlin/io/hstream/impl/BufferedProducerKtImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class BufferedProducerKtImpl(
103103
val records = shardAppendBuffer[shardId]!!
104104
val futures = shardAppendFutures[shardId]!!
105105
val recordsBytesSize = shardAppendBytesSize[shardId]!!
106-
logger.info("ready to flush recordBuffer for shard:$shardId, current buffer size is [{}]", records.size)
106+
logger.debug("ready to flush recordBuffer for shard:$shardId, current buffer size is [{}]", records.size)
107107
shardAppendBuffer.remove(shardId)
108108
shardAppendFutures.remove(shardId)
109109
shardAppendBytesSize.remove(shardId)
@@ -115,7 +115,7 @@ class BufferedProducerKtImpl(
115115
result?.await()
116116
result = null
117117
writeShard(shardId, records, futures)
118-
logger.info("wrote batch for shard:$shardId")
118+
logger.debug("wrote batch for shard:$shardId")
119119
flowController?.release(recordsBytesSize)
120120
Unit
121121
}

client/src/main/kotlin/io/hstream/impl/ProducerKtImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ open class ProducerKtImpl(private val client: HStreamClientKtImpl, private val s
135135
check(tryTimes > 0)
136136

137137
val serverUrl = lookupServerUrl(shardId, forceUpdate)
138-
logger.info("try append with serverUrl [{}], current left tryTimes is [{}]", serverUrl, tryTimes)
138+
logger.debug("try append with serverUrl [{}], current left tryTimes is [{}]", serverUrl, tryTimes)
139139
return try {
140140
client.getCoroutineStub(serverUrl)
141141
.append(appendRequest).recordIdsList.map(GrpcUtils::recordIdFromGrpc)

0 commit comments

Comments
 (0)