mirror of
https://github.com/clangen/musikcube.git
synced 2024-12-27 03:14:30 +00:00
Let's disable web socket logging by default (unless enabled in prefs)
This commit is contained in:
parent
d25d07893c
commit
6c96998ace
@ -807,10 +807,16 @@ class PlaybackRemote : public IPlaybackRemote {
|
||||
|
||||
void ThreadProc() {
|
||||
try {
|
||||
wss.get_alog().set_ostream(&std::cerr);
|
||||
wss.get_elog().set_ostream(&std::cerr);
|
||||
wss.set_access_channels(websocketpp::log::alevel::all);
|
||||
wss.clear_access_channels(websocketpp::log::alevel::frame_payload);
|
||||
if (preferences->GetBool("debug")) {
|
||||
wss.get_alog().set_ostream(&std::cerr);
|
||||
wss.get_elog().set_ostream(&std::cerr);
|
||||
wss.set_access_channels(websocketpp::log::alevel::all);
|
||||
wss.clear_access_channels(websocketpp::log::alevel::frame_payload);
|
||||
}
|
||||
else {
|
||||
wss.set_access_channels(websocketpp::log::alevel::none);
|
||||
wss.clear_access_channels(websocketpp::log::alevel::none);
|
||||
}
|
||||
|
||||
wss.init_asio();
|
||||
wss.set_message_handler(std::bind(&PlaybackRemote::OnMessage, this, &wss, ::_1, ::_2));
|
||||
|
Loading…
Reference in New Issue
Block a user