mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-12 16:46:42 +02:00
log error code message
This commit is contained in:
parent
884a65f289
commit
ffa823bb31
4 changed files with 7 additions and 10 deletions
|
@ -2,11 +2,8 @@ VERSION = 0.3.90
|
|||
TARGET = snapclient
|
||||
SHELL = /bin/bash
|
||||
|
||||
#CXX = /home/johannes/Develop/android-ndk-r10e-arm-21/bin/arm-linux-androideabi-g++
|
||||
#CFLAGS = -std=c++0x -Wall -Wno-unused-function -O3 -pthread -DASIO_STANDALONE -DVERSION=\"$(VERSION)\" -I.. -I../externals/asio/asio/include -I../externals/tclap/include -I../externals/ezOptionParser -I/home/johannes/Develop/build/arm/include -L/home/johannes/Develop/build/arm/lib
|
||||
|
||||
CXX = /usr/bin/g++
|
||||
CFLAGS = -std=c++0x -Wall -Wno-unused-function -O3 -pthread -DASIO_STANDALONE -DVERSION=\"$(VERSION)\" -I.. -I../externals/asio/asio/include -I../externals/tclap/include -I../externals/ezOptionParser
|
||||
CFLAGS = -std=c++0x -Wall -Wno-unused-function -O3 -pthread -DASIO_STANDALONE -DVERSION=\"$(VERSION)\" -I.. -I../externals/asio/asio/include
|
||||
LDFLAGS = -lrt -lasound -logg -lvorbis -lvorbisenc -lFLAC -lavahi-client -lavahi-common
|
||||
|
||||
OBJ = snapClient.o stream.o clientConnection.o timeProvider.o player/player.o player/alsaPlayer.o decoder/oggDecoder.o decoder/pcmDecoder.o decoder/flacDecoder.o controller.o browseAvahi.o ../message/pcmChunk.o ../common/log.o ../message/sampleFormat.o
|
||||
|
|
|
@ -92,9 +92,9 @@ void ClientConnection::stop()
|
|||
if (socket_)
|
||||
{
|
||||
socket_->shutdown(asio::ip::tcp::socket::shutdown_both, ec);
|
||||
if (ec) logE << "Error in socket shutdown: " << ec << endl;
|
||||
if (ec) logE << "Error in socket shutdown: " << ec.message() << endl;
|
||||
socket_->close(ec);
|
||||
if (ec) logE << "Error in socket close: " << ec << endl;
|
||||
if (ec) logE << "Error in socket close: " << ec.message() << endl;
|
||||
}
|
||||
if (readerThread_)
|
||||
{
|
||||
|
|
|
@ -56,9 +56,9 @@ void ControlSession::stop()
|
|||
if (socket_)
|
||||
{
|
||||
socket_->shutdown(asio::ip::tcp::socket::shutdown_both, ec);
|
||||
if (ec) logE << "Error in socket shutdown: " << ec << "\n";
|
||||
if (ec) logE << "Error in socket shutdown: " << ec.message() << "\n";
|
||||
socket_->close(ec);
|
||||
if (ec) logE << "Error in socket close: " << ec << "\n";
|
||||
if (ec) logE << "Error in socket close: " << ec.message() << "\n";
|
||||
}
|
||||
if (readerThread_)
|
||||
{
|
||||
|
|
|
@ -58,9 +58,9 @@ void StreamSession::stop()
|
|||
if (socket_)
|
||||
{
|
||||
socket_->shutdown(asio::ip::tcp::socket::shutdown_both, ec);
|
||||
if (ec) logE << "Error in socket shutdown: " << ec << "\n";
|
||||
if (ec) logE << "Error in socket shutdown: " << ec.message() << "\n";
|
||||
socket_->close(ec);
|
||||
if (ec) logE << "Error in socket close: " << ec << "\n";
|
||||
if (ec) logE << "Error in socket close: " << ec.message() << "\n";
|
||||
}
|
||||
if (readerThread_)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue