Bug 1701042 [wpt PR 28246] - serve.py: Define logger if undefined, a=testonly
commit3ce6a8d6efc3839e9cfa550a351c2483dfa2d74b
authorArno Renevier <arenevier@fb.com>
Tue, 13 Apr 2021 10:17:22 +0000 (13 10:17 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Thu, 15 Apr 2021 09:17:02 +0000 (15 09:17 +0000)
tree81b9b17a6659307b5bf2d05e87488eff2fc57bdc
parent54bc57f24f279789b71a74b18035b631f669d36c
Bug 1701042 [wpt PR 28246] - serve.py: Define logger if undefined, a=testonly

Automatic update from web-platform-tests
serve.py: Define logger if undefined

create_daemon is sometimes called in a new python instance, in which
case it looses the reference to global variable logger. When it happens,
we redefine logger with at default value.

Fixes https://github.com/web-platform-tests/wpt/issues/28245

--

wpt-commits: b578f56f07749b2fa1a876510f5aea3845d44356
wpt-pr: 28246
testing/web-platform/tests/tools/serve/serve.py