We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7963aa5 commit 9d6540fCopy full SHA for 9d6540f
functions/helloworld/main.py
@@ -12,9 +12,6 @@
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
14
15
-# [START functions_helloworld_error]
16
-import logging
17
-# [END functions_helloworld_error]
18
import sys
19
20
@@ -159,6 +156,7 @@ def hello_error_2(request):
159
156
# [START functions_helloworld_error]
160
157
# WILL NOT be reported to Stackdriver Error Reporting, but will show up
161
158
# in logs
+ import logging
162
print(RuntimeError('I failed you (print to stdout)'))
163
logging.warn(RuntimeError('I failed you (logging.warn)'))
164
logging.error(RuntimeError('I failed you (logging.error)'))
0 commit comments