Skip to content

Commit

Permalink
change gsl_Expects to gsl_Assert
Browse files Browse the repository at this point in the history
  • Loading branch information
fgerlits committed Sep 6, 2024
1 parent 3e255fd commit 7e46fce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extensions/aws/utils/AWSSdkLogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <cstdio>

#include "aws/core/utils/logging/LogLevel.h"
#include "utils/gsl.h"

namespace org::apache::nifi::minifi::aws::utils {

Expand Down Expand Up @@ -81,7 +82,7 @@ void AWSSdkLogger::vaLog(Aws::Utils::Logging::LogLevel log_level, const char* ta
logger_->log_error("A log line from aws-sdk-cpp could not be processed: [{}] {}", tag, format_str);
return;
}
gsl_Expects(length <= buffer_size);
gsl_Assert(length <= buffer_size);

log(log_level, tag, std::string_view(buffer.data(), length));
}
Expand Down

0 comments on commit 7e46fce

Please sign in to comment.