Skip to content

Commit 9d6540f

Browse files
author
Ace Nassri
authored
Fix indentation bug in docs (#1595)
1 parent 7963aa5 commit 9d6540f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

functions/helloworld/main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
# [START functions_helloworld_error]
16-
import logging
17-
# [END functions_helloworld_error]
1815
import sys
1916

2017

@@ -159,6 +156,7 @@ def hello_error_2(request):
159156
# [START functions_helloworld_error]
160157
# WILL NOT be reported to Stackdriver Error Reporting, but will show up
161158
# in logs
159+
import logging
162160
print(RuntimeError('I failed you (print to stdout)'))
163161
logging.warn(RuntimeError('I failed you (logging.warn)'))
164162
logging.error(RuntimeError('I failed you (logging.error)'))

0 commit comments

Comments
 (0)