Skip to content

Commit

Permalink
Issue #LR-773 chore: remove the logs
Browse files Browse the repository at this point in the history
  • Loading branch information
AmiableAnil committed May 17, 2024
1 parent 42fec4b commit 00a2490
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.ekstep.analytics.framework.util
import org.apache.spark.SparkContext
import org.sunbird.cloud.storage.conf.AppConf
import org.ekstep.analytics.framework.Level.{ERROR, INFO}

trait ICloudStorageProvider {
def setConf(sc: SparkContext, storageKey: Option[String], storageSecret: Option[String]): Unit
Expand Down Expand Up @@ -64,8 +63,6 @@ object OCIProvider extends ICloudStorageProvider {
val key = storageKey.filter(_.nonEmpty).map(value => AppConf.getConfig(value)).getOrElse(AppConf.getStorageKey("oci"))
val secret = storageSecret.filter(_.nonEmpty).map(value => AppConf.getConfig(value)).getOrElse(AppConf.getStorageSecret("oci"))
JobLogger.log("Configuring OCI Access Key & Secret Key to SparkContext")
JobLogger.log("OCIProvider", Some(Map("storageKey" -> storageKey, "storageSecret" -> storageSecret)), INFO)
JobLogger.log("OCIProvider", Some(Map("key" -> key, "secret" -> secret)), INFO)
sc.hadoopConfiguration.set("fs.s3n.awsAccessKeyId", key);
sc.hadoopConfiguration.set("fs.s3n.awsSecretAccessKey", secret);
val storageEndpoint = AppConf.getConfig("cloud_storage_endpoint_with_protocol")
Expand Down

0 comments on commit 00a2490

Please sign in to comment.