diff --git a/cloudwatch_logger/src/main.cpp b/cloudwatch_logger/src/main.cpp index 750f8af..bf8a48c 100644 --- a/cloudwatch_logger/src/main.cpp +++ b/cloudwatch_logger/src/main.cpp @@ -13,6 +13,7 @@ * permissions and limitations under the License. */ +#include #include #include #include @@ -29,6 +30,8 @@ constexpr char kNodeName[] = "cloudwatch_logger"; int main(int argc, char ** argv) { + Aws::SDKOptions options; + Aws::InitAPI(options); Aws::Utils::Logging::InitializeAWSLogging( Aws::MakeShared(kNodeName)); ros::init(argc, argv, kNodeName); @@ -100,6 +103,7 @@ int main(int argc, char ** argv) cloudwatch_logger.shutdown(); Aws::Utils::Logging::ShutdownAWSLogging(); ros::shutdown(); + Aws::ShutdownAPI(options); return 0; }