Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cloudwatch_logger/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* permissions and limitations under the License.
*/

#include <aws/core/Aws.h>
#include <aws/core/utils/logging/LogMacros.h>
#include <aws_common/sdk_utils/client_configuration_provider.h>
#include <cloudwatch_logger/log_node.h>
Expand All @@ -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<Aws::Utils::Logging::AWSROSLogger>(kNodeName));
ros::init(argc, argv, kNodeName);
Expand Down Expand Up @@ -100,6 +103,7 @@ int main(int argc, char ** argv)
cloudwatch_logger.shutdown();
Aws::Utils::Logging::ShutdownAWSLogging();
ros::shutdown();
Aws::ShutdownAPI(options);

return 0;
}