]> git.sesse.net Git - casparcg/commitdiff
Removed unnecessary printing.
authorronag <ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Sun, 25 Dec 2011 11:02:23 +0000 (11:02 +0000)
committerronag <ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Sun, 25 Dec 2011 11:02:23 +0000 (11:02 +0000)
git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/trunk@1940 362d55ac-95cf-4e76-9f9a-cbaa9c17b72d

protocol/amcp/AMCPCommandsImpl.cpp

index dbcc1f92268128c2d5dc161b4f962d1154b1f1b8..4888b4f91a01bea937494a47c2859522f7576dd1 100644 (file)
@@ -298,9 +298,7 @@ bool CallCommand::DoExecute()
 \r
                if(!result.timed_wait(boost::posix_time::seconds(2)))\r
                        BOOST_THROW_EXCEPTION(timed_out());\r
-\r
-               CASPAR_LOG(info) << "Executed call: " <<  _parameters[0] << TEXT(" successfully");\r
-               \r
+                               \r
                std::wstringstream replyString;\r
                if(result.get().empty())\r
                        replyString << TEXT("202 CALL OK\r\n");\r
@@ -564,9 +562,7 @@ bool SwapCommand::DoExecute()
                        auto ch2 = GetChannels().at(boost::lexical_cast<int>(_parameters[0])-1);\r
                        ch1->stage()->swap_layers(ch2->stage());\r
                }\r
-\r
-               CASPAR_LOG(info) << "Swapped successfully";\r
-\r
+               \r
                SetReplyString(TEXT("202 SWAP OK\r\n"));\r
 \r
                return true;\r
@@ -593,8 +589,6 @@ bool AddCommand::DoExecute()
                auto consumer = create_consumer(_parameters);\r
                GetChannel()->output()->add(GetLayerIndex(consumer->index()), consumer);\r
        \r
-               CASPAR_LOG(info) << "Added " <<  _parameters[0] << TEXT(" successfully");\r
-\r
                SetReplyString(TEXT("202 ADD OK\r\n"));\r
 \r
                return true;\r
@@ -651,8 +645,6 @@ bool LoadCommand::DoExecute()
                auto pFP = create_producer(GetChannel()->mixer(), _parameters);         \r
                GetChannel()->stage()->load(GetLayerIndex(), pFP, true);\r
        \r
-               CASPAR_LOG(info) << "Loaded " <<  _parameters[0] << TEXT(" successfully");\r
-\r
                SetReplyString(TEXT("202 LOAD OK\r\n"));\r
 \r
                return true;\r
@@ -765,7 +757,6 @@ bool LoadbgCommand::DoExecute()
                auto pFP2 = create_transition_producer(GetChannel()->get_video_format_desc().field_mode, pFP, transitionInfo);\r
                GetChannel()->stage()->load(GetLayerIndex(), pFP2, false, auto_play ? transitionInfo.duration : -1); // TODO: LOOP\r
        \r
-               CASPAR_LOG(info) << "Loaded " << _parameters[0] << TEXT(" successfully to background");\r
                SetReplyString(TEXT("202 LOADBG OK\r\n"));\r
 \r
                return true;\r
@@ -817,9 +808,7 @@ bool PlayCommand::DoExecute()
                        for(auto it = _parameters.begin(); it != _parameters.end(); ++it)\r
                                lbg.AddParameter(*it);\r
                        if(!lbg.Execute())\r
-                               CASPAR_LOG(warning) << " Failed to play.";\r
-\r
-                       CASPAR_LOG(info) << "Playing " << _parameters[0];\r
+                               throw std::exception();\r
                }\r
 \r
                GetChannel()->stage()->play(GetLayerIndex());\r