This repository was archived by the owner on Feb 26, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,5 @@ filterwarnings =
1717 ignore:datetime.datetime.utcfromtimestamp\(\) is deprecated:DeprecationWarning:google.cloud.logging_v2.handlers.transports
1818 ignore:datetime.datetime.utcnow\(\) is deprecated:DeprecationWarning:tests.unit.test__http
1919 ignore:datetime.datetime.utcnow\(\) is deprecated:DeprecationWarning:tests.unit.test_entries
20- # Remove once https://github.com/googleapis/python-logging/issues/820 is fixed
21- ignore:.*warn.*is deprecated, use.*warning.*instead:DeprecationWarning
2220 # Remove once a version of grpcio newer than 1.59.3 is released to PyPI
2321 ignore:datetime.datetime.utcnow\(\) is deprecated:DeprecationWarning:grpc._channel
Original file line number Diff line number Diff line change @@ -605,7 +605,7 @@ def test_handlers_w_extras(self):
605605 "resource" : Resource (type = "cloudiot_device" , labels = {}),
606606 "labels" : {"test-label" : "manual" },
607607 }
608- cloud_logger .warn (LOG_MESSAGE , extra = extra )
608+ cloud_logger .warning (LOG_MESSAGE , extra = extra )
609609
610610 entries = _list_entries (logger )
611611 self .assertEqual (len (entries ), 1 )
@@ -634,7 +634,7 @@ def test_handlers_w_json_fields(self):
634634 cloud_logger = logging .getLogger (LOGGER_NAME )
635635 cloud_logger .addHandler (handler )
636636 extra = {"json_fields" : {"hello" : "world" , "two" : 2 }}
637- cloud_logger .warn (LOG_MESSAGE , extra = extra )
637+ cloud_logger .warning (LOG_MESSAGE , extra = extra )
638638
639639 entries = _list_entries (logger )
640640 self .assertEqual (len (entries ), 1 )
You can’t perform that action at this time.
0 commit comments