onnxruntime/server/http/core/util.cc

20 lines
No EOL
452 B
C++

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include <iostream>
#include <boost/beast/core.hpp>
#include "context.h"
#include "util.h"
namespace onnxruntime {
namespace server {
// Report a failure
void ErrorHandling(beast::error_code ec, char const* what) {
std::cerr << what << " failed: " << ec.value() << " : " << ec.message() << "\n";
}
} // namespace server
} // namespace onnxruntime