Skip to content

Commit 1d808cf

Browse files
committed
log
1 parent 60d8f2b commit 1d808cf

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/main/kotlin/dev/arbjerg/ukulele/api/PlayerController.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ class PlayerController(
130130
val guild = shardManager.getGuildById(guildId) ?: return
131131
val properties = guildPropertiesService.getAwait(guildId)
132132
val volume = body["volume"] ?: return
133-
log.info("API: setVolume called for guild $guildId with volume $volume")
134133
playerRegistry.get(guild, properties).volume = volume
135134
}
136135

src/main/kotlin/dev/arbjerg/ukulele/audio/Player.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Player(private val beans: Beans, guildProperties: GuildProperties) : Audio
5858
val min = beans.botProps.minVolume
5959
val max = beans.botProps.maxVolume
6060
val result = if (v == 0) 0 else min + (v / 1000.0 * (max - min)).roundToInt()
61-
log.info("DEBUG VIRTUAL VOLUME: Input=$v, Min=$min, Max=$max -> Real=$result")
61+
log.info("DEBUG VIRTUAL VOLUME: Input=$v, Min=$min, Max=$max -> Real=$result [PlayerHash=${System.identityHashCode(this)}]")
6262
return result
6363
}
6464

0 commit comments

Comments
 (0)