X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=protocol%2Famcp%2FAMCPCommandQueue.cpp;h=59198b969ad5456c24f1a83cfa334464ff8b68de;hb=613e484987a8887b41bf820eb83b74390bc19881;hp=ea69ccb832cbe6f8e2a6f196cc09d942712645f5;hpb=56ca215d1b171b11f7307dbcd659e3acec1ab7b7;p=casparcg diff --git a/protocol/amcp/AMCPCommandQueue.cpp b/protocol/amcp/AMCPCommandQueue.cpp index ea69ccb83..59198b969 100644 --- a/protocol/amcp/AMCPCommandQueue.cpp +++ b/protocol/amcp/AMCPCommandQueue.cpp @@ -104,29 +104,32 @@ void AMCPCommandQueue::AddCommand(AMCPCommand::ptr_type pCurrentCommand) } if (pCurrentCommand->Execute()) - CASPAR_LOG(debug) << "Executed command (" << timer.elapsed() << "s): " << print; + CASPAR_LOG(info) << "Executed command (" << timer.elapsed() << "s): " << print; else CASPAR_LOG(warning) << "Failed to execute command: " << print; } catch (file_not_found&) { + CASPAR_LOG_CURRENT_EXCEPTION_AT_LEVEL(debug); CASPAR_LOG(error) << L"File not found. No match found for parameters. Check syntax."; pCurrentCommand->SetReplyString(L"404 " + pCurrentCommand->print() + L" FAILED\r\n"); } catch (const user_error& e) { + CASPAR_LOG_CURRENT_EXCEPTION_AT_LEVEL(debug); CASPAR_LOG(error) << *boost::get_error_info(e) << ". Check syntax."; pCurrentCommand->SetReplyString(L"403 " + pCurrentCommand->print() + L" FAILED\r\n"); } catch (std::out_of_range&) { + CASPAR_LOG_CURRENT_EXCEPTION_AT_LEVEL(debug); CASPAR_LOG(error) << L"Missing parameter. Check syntax."; pCurrentCommand->SetReplyString(L"402 " + pCurrentCommand->print() + L" FAILED\r\n"); } catch (...) { CASPAR_LOG_CURRENT_EXCEPTION(); - CASPAR_LOG(warning) << "Failed to execute command:" << pCurrentCommand->print(); + CASPAR_LOG(error) << "Failed to execute command:" << pCurrentCommand->print(); pCurrentCommand->SetReplyString(L"501 " + pCurrentCommand->print() + L" FAILED\r\n"); }