Commit 82266756 authored by Kishore Battula's avatar Kishore Battula
Browse files

Merge branch 'users/amaverma/loggingConsistentcy' into 'master'

making the logs consistent with gcp implementation

See merge request osdu/platform/system/schema-service!30
parents c8fffa36 f65e2ba6
......@@ -115,7 +115,7 @@ public class AzureSchemaInfoStore implements ISchemaInfoStore {
}
}
log.info(SchemaConstants.SCHEMA_CREATED);
log.info(SchemaConstants.SCHEMA_INFO_CREATED);
return getSchemaInfoObject(flattenedSchemaInfo);
}
......@@ -139,7 +139,7 @@ public class AzureSchemaInfoStore implements ISchemaInfoStore {
throw new ApplicationException(SchemaConstants.SCHEMA_CREATION_FAILED_INVALID_OBJECT);
}
log.info(SchemaConstants.SCHEMA_CREATED);
log.info(SchemaConstants.SCHEMA_INFO_UPDATED);
return getSchemaInfoObject(flattenedSchemaInfo);
}
......
......@@ -66,7 +66,6 @@ public class AzureSchemaStore implements ISchemaStore {
throw new NotFoundException(SchemaConstants.SCHEMA_NOT_PRESENT);
}
catch (Exception ex) {
log.info(ex.getMessage());
throw new NotFoundException(SchemaConstants.SCHEMA_NOT_PRESENT);
}
}
......@@ -86,6 +85,7 @@ public class AzureSchemaStore implements ISchemaStore {
try {
blobStore.writeToStorageContainer(dataPartitionId, filePath, content, config.containerName());
log.info(SchemaConstants.SCHEMA_CREATED);
return filePath;
} catch (Exception ex) {
throw new ApplicationException(SchemaConstants.INTERNAL_SERVER_ERROR);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment