Skip to content

Commit

Permalink
added logger info when recording is enabled but parameters are not given
Browse files Browse the repository at this point in the history
  • Loading branch information
cemklc committed Apr 15, 2021
1 parent 7a2e3d6 commit d66decd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/main/java/io/antmedia/AntMediaApplicationAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -1511,6 +1511,21 @@ private void updateAppSettingsBean(AppSettings appSettings, AppSettings newSetti
storageClient.setRegion("");
}

if (appSettings.isS3RecordingEnabled()){
if (appSettings.getS3AccessKey().isEmpty())
logger.info("S3 recording is enabled but access key is not given ");
if (appSettings.getS3SecretKey().isEmpty())
logger.info("S3 recording is enabled but secret key is not given ");
if (appSettings.getS3BucketName().isEmpty())
logger.info("S3 recording is enabled but bucket name is not given ");
if (appSettings.getS3RegionName().isEmpty())
logger.info("S3 recording is enabled but region name is not given ");

}






appSettings.setGeneratePreview(newSettings.isGeneratePreview());
Expand Down

0 comments on commit d66decd

Please sign in to comment.