From 81088e27ad6bdeca002859eeb499f4a222445eb0 Mon Sep 17 00:00:00 2001 From: Derek Bekoe Date: Mon, 1 Aug 2016 15:40:20 -0700 Subject: [PATCH 1/2] Remove warning log messages --- src/azure/cli/commands/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/azure/cli/commands/__init__.py b/src/azure/cli/commands/__init__.py index 9ccffbeaa56..aee529ed1b1 100644 --- a/src/azure/cli/commands/__init__.py +++ b/src/azure/cli/commands/__init__.py @@ -89,7 +89,6 @@ def _delay(self): time.sleep(self.poll_interval_ms / 1000.0) def __call__(self, poller): - logger.warning(self.start_msg) logger.info("Starting long running operation '%s' with polling interval %s ms", self.start_msg, self.poll_interval_ms) while not poller.done(): @@ -110,7 +109,6 @@ def __call__(self, poller): logger.info("Long running operation '%s' completed with result %s", self.start_msg, result) - logger.warning(self.finish_msg) return result class DeploymentOutputLongRunningOperation(LongRunningOperation): #pylint: disable=too-few-public-methods From ceba8238aa7d181ac78c67dafc1ca851c93a26ba Mon Sep 17 00:00:00 2001 From: Derek Bekoe Date: Mon, 1 Aug 2016 17:15:42 -0700 Subject: [PATCH 2/2] Output to stderr instead of using logging --- src/azure/cli/commands/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/azure/cli/commands/__init__.py b/src/azure/cli/commands/__init__.py index aee529ed1b1..c05ac3feab7 100644 --- a/src/azure/cli/commands/__init__.py +++ b/src/azure/cli/commands/__init__.py @@ -4,6 +4,7 @@ #--------------------------------------------------------------------------------------------- from __future__ import print_function +import sys import json import time import traceback @@ -89,6 +90,7 @@ def _delay(self): time.sleep(self.poll_interval_ms / 1000.0) def __call__(self, poller): + print(self.start_msg, file=sys.stderr) logger.info("Starting long running operation '%s' with polling interval %s ms", self.start_msg, self.poll_interval_ms) while not poller.done():