Commit 328c6fde authored by Nikhil Singh[MicroSoft]'s avatar Nikhil Singh[MicroSoft]
Browse files

logs

parent c483ff1e
Pipeline #57513 failed with stages
in 3 minutes and 55 seconds
......@@ -40,7 +40,7 @@ public class PullSubscription implements IPubsubSubscription {
ManagementClient managementClient = factory.getManager();
try {
managementClient.createSubscription(topicAliasName, subscriptionId);
logger.debug(String.format("Pull Subscription with id %s created successfully", subscriptionId));
logger.info(String.format("Pull Subscription with id %s created successfully", subscriptionId));
} catch (Exception e) {
if (e.getMessage().contains(RESOURCE_PROVISIONING_ERROR_MESSAGE)) {
logger.error("Another request is trying to create the same Pull subscription");
......@@ -59,7 +59,7 @@ public class PullSubscription implements IPubsubSubscription {
ManagementClient managementClient = factory.getManager();
try {
managementClient.deleteSubscription(topicAliasName, subscriptionId);
logger.debug(String.format("Pull Subscription with id %s deleted successfully", subscriptionId));
logger.info(String.format("Pull Subscription with id %s deleted successfully", subscriptionId));
} catch (Exception e) {
if (e.getMessage().contains(RESOURCE_PROVISIONING_ERROR_MESSAGE)) {
logger.error("Another request is trying to delete the same Pull subscription");
......@@ -78,7 +78,7 @@ public class PullSubscription implements IPubsubSubscription {
ManagementClient managementClient = factory.getManager();
try {
managementClient.getSubscription(topicAliasName, subscriptionId);
logger.debug(String.format("Pull Subscription with id %s fetched successfully", subscriptionId));
logger.info(String.format("Pull Subscription with id %s fetched successfully", subscriptionId));
} catch (Exception e) {
if (e instanceof MessagingEntityNotFoundException) {
logger.error(String.format("Pull Subscription with id %s does not exist.", subscriptionId));
......
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