@@ -189,8 +189,6 @@ class KinesisController : public CloudLogControllerImpl {
189189
190190 CloudLogWritableFile* CreateWritableFile (const std::string& fname,
191191 const EnvOptions& options) override ;
192- Status Verify () const override ;
193-
194192 protected:
195193 Status Initialize (CloudEnv* env) override ;
196194
@@ -212,40 +210,30 @@ class KinesisController : public CloudLogControllerImpl {
212210};
213211
214212Status KinesisController::Initialize (CloudEnv* env) {
215- Status status = CloudLogControllerImpl::Initialize (env);
216- if (status .ok ()) {
213+ Status st = CloudLogControllerImpl::Initialize (env);
214+ if (st .ok ()) {
217215 Aws::Client::ClientConfiguration config;
218216 const auto & options = env->GetCloudEnvOptions ();
219217 std::shared_ptr<Aws::Auth::AWSCredentialsProvider> provider;
220- status = options.credentials .GetCredentialsProvider (&provider);
221- if (status .ok ()) {
222- status = AwsCloudOptions::GetClientConfiguration (
218+ st = options.credentials .GetCredentialsProvider (&provider);
219+ if (st .ok ()) {
220+ st = AwsCloudOptions::GetClientConfiguration (
223221 env, options.src_bucket .GetRegion (), &config);
224222 }
225- if (status .ok ()) {
223+ if (st .ok ()) {
226224 kinesis_client_.reset (
227225 provider ? new Aws::Kinesis::KinesisClient (provider, config)
228226 : new Aws::Kinesis::KinesisClient (config));
229227 // Initialize stream name.
230228 std::string bucket = env->GetSrcBucketName ();
231229 topic_ = Aws::String (bucket.c_str (), bucket.size ());
232230
233- Log (InfoLogLevel::DEBUG_LEVEL , env->info_log_ ,
231+ Log (InfoLogLevel::INFO_LEVEL , env->info_log_ ,
234232 " [%s] KinesisController opening stream %s using cachedir '%s'" ,
235233 Name (), topic_.c_str (), cache_dir_.c_str ());
236234 }
237235 }
238- return status;
239- }
240-
241- Status KinesisController::Verify () const {
242- Status s = CloudLogControllerImpl::Verify ();
243- if (s.ok ()) {
244- if (!kinesis_client_) {
245- s = Status::InvalidArgument (" Failed to initialize kinesis client" );
246- }
247- }
248- return s;
236+ return st;
249237}
250238
251239Status KinesisController::TailStream () {
0 commit comments