From 0113331b23a294aaf2608edf32a42d9dcb463f2a Mon Sep 17 00:00:00 2001 From: Ace Nassri Date: Mon, 23 Jul 2018 14:35:37 -0700 Subject: [PATCH] Fix indentation bug in docs --- functions/helloworld/main.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/functions/helloworld/main.py b/functions/helloworld/main.py index ac0a0a4bdd6..b95f4a4a9cb 100644 --- a/functions/helloworld/main.py +++ b/functions/helloworld/main.py @@ -12,9 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# [START functions_helloworld_error] -import logging -# [END functions_helloworld_error] import sys @@ -159,6 +156,7 @@ def hello_error_2(request): # [START functions_helloworld_error] # WILL NOT be reported to Stackdriver Error Reporting, but will show up # in logs + import logging print(RuntimeError('I failed you (print to stdout)')) logging.warn(RuntimeError('I failed you (logging.warn)')) logging.error(RuntimeError('I failed you (logging.error)'))