Skip to content

Commit 5c585d3

Browse files
committed
Minor
1 parent f1aedba commit 5c585d3

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

conf.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ auth.username=
1010
## Spotify password (USER_PASS)
1111
auth.password=
1212
## Spotify authentication blob (BLOB)
13-
auth.blob=
13+
auth.blob=
14+
## Cache enabled
15+
cache.enabled=false

core/src/main/java/xyz/gianlu/librespot/player/ChannelManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.google.protobuf.ByteString;
44
import org.apache.log4j.Logger;
55
import org.jetbrains.annotations.NotNull;
6+
import xyz.gianlu.librespot.common.Utils;
67
import xyz.gianlu.librespot.core.PacketsManager;
78
import xyz.gianlu.librespot.core.Session;
89
import xyz.gianlu.librespot.crypto.Packet;
@@ -75,10 +76,9 @@ protected void appendToQueue(@NotNull Packet packet) {
7576

7677
channel.addToQueue(payload);
7778
} else if (packet.is(Packet.Type.ChannelError)) {
78-
short code = payload.getShort();
79-
LOGGER.fatal(String.format("Stream error, code: %d, length: %d", code, packet.payload.length));
79+
LOGGER.fatal(String.format("Stream error, payload: %s", Utils.bytesToHex(packet.payload)));
8080
} else {
81-
LOGGER.warn(String.format("Couldn't handle packet, cmd: %s, length %d", packet.type(), packet.payload.length));
81+
LOGGER.warn(String.format("Couldn't handle packet, cmd: %s, payload: %s", packet.type(), Utils.bytesToHex(packet.payload)));
8282
}
8383
}
8484

0 commit comments

Comments
 (0)