diff options
author | Christian <zerov83@gmail.com> | 2016-03-16 15:37:47 +0100 |
---|---|---|
committer | Christian <zerov83@gmail.com> | 2016-03-16 15:37:47 +0100 |
commit | 7d6566a4cc70b5fb3b5dd66e66c852f6a765c2ac (patch) | |
tree | 4293409b31d1a1c0d17dd36126337195bae0029f | |
parent | b04f9e165c0b80e23f94419a24332c527e39fa53 (diff) | |
download | vdr-plugin-plex-7d6566a4cc70b5fb3b5dd66e66c852f6a765c2ac.tar.gz vdr-plugin-plex-7d6566a4cc70b5fb3b5dd66e66c852f6a765c2ac.tar.bz2 |
log to syslog
-rw-r--r-- | PlexHTTPRequestHandler.cpp | 1 | ||||
-rw-r--r-- | Plexservice.cpp | 6 | ||||
-rw-r--r-- | viewGridNavigator.cpp | 1 |
3 files changed, 3 insertions, 5 deletions
diff --git a/PlexHTTPRequestHandler.cpp b/PlexHTTPRequestHandler.cpp index 8cf8cef..81f0628 100644 --- a/PlexHTTPRequestHandler.cpp +++ b/PlexHTTPRequestHandler.cpp @@ -234,7 +234,6 @@ void PlayerRequestHandler::handleRequest(Poco::Net::HTTPServerRequest& request, std::string key = query["key"]; std::string fullUrl = protocol + "://" + address + ":" + port + key; // Metainfo - std::cout << fullUrl << std::endl; auto Cont = Plexservice::GetMediaContainer(fullUrl); // Check for video diff --git a/Plexservice.cpp b/Plexservice.cpp index 366561d..8e5b082 100644 --- a/Plexservice.cpp +++ b/Plexservice.cpp @@ -115,10 +115,10 @@ void Plexservice::UpdateResources() pContainer = std::shared_ptr<MediaContainer>(new MediaContainer(&rs)); } catch (Poco::Net::NetException &exc) { - std::cout << exc.displayText() << std::endl; + esyslog("[plex] UpdateResources, NetException: %s", exc.displayText().c_str()); return; } catch (Poco::Exception &exc) { - std::cout << exc.displayText() << std::endl; + esyslog("[plex] UpdateResources, Exception: %s", exc.displayText().c_str()); return; } @@ -240,7 +240,7 @@ std::shared_ptr<MediaContainer> Plexservice::GetMediaContainer(std::string fullU return 0; //Poco::StreamCopier::copyStream(rs, std::cout); } catch (Poco::Net::NetException &exc) { - std::cout << exc.displayText() << std::endl; + esyslog("[plex] GetMediaContainer, NetException: %s", exc.displayText().c_str()); return 0; } } diff --git a/viewGridNavigator.cpp b/viewGridNavigator.cpp index 33619ba..c6b3382 100644 --- a/viewGridNavigator.cpp +++ b/viewGridNavigator.cpp @@ -39,7 +39,6 @@ void cViewGridNavigator::ReDraw(cGridElement* element) if(element) { cMutexLock MutexLock(&cPlexSdOsd::RedrawMutex); if (!element->IsVisible()) { - std::cout << "ReDraw element not visible" << std::endl; return; } double x, y; |