File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,5 @@ filterwarnings =
17
17
ignore:datetime.datetime.utcfromtimestamp\(\) is deprecated:DeprecationWarning:google.cloud.logging_v2.handlers.transports
18
18
ignore:datetime.datetime.utcnow\(\) is deprecated:DeprecationWarning:tests.unit.test__http
19
19
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
22
20
# Remove once a version of grpcio newer than 1.59.3 is released to PyPI
23
21
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):
605
605
"resource" : Resource (type = "cloudiot_device" , labels = {}),
606
606
"labels" : {"test-label" : "manual" },
607
607
}
608
- cloud_logger .warn (LOG_MESSAGE , extra = extra )
608
+ cloud_logger .warning (LOG_MESSAGE , extra = extra )
609
609
610
610
entries = _list_entries (logger )
611
611
self .assertEqual (len (entries ), 1 )
@@ -634,7 +634,7 @@ def test_handlers_w_json_fields(self):
634
634
cloud_logger = logging .getLogger (LOGGER_NAME )
635
635
cloud_logger .addHandler (handler )
636
636
extra = {"json_fields" : {"hello" : "world" , "two" : 2 }}
637
- cloud_logger .warn (LOG_MESSAGE , extra = extra )
637
+ cloud_logger .warning (LOG_MESSAGE , extra = extra )
638
638
639
639
entries = _list_entries (logger )
640
640
self .assertEqual (len (entries ), 1 )
You can’t perform that action at this time.
0 commit comments