mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-20 15:24:13 -04:00
Fix for structured logging tests stomping on logs (#6023)
This commit is contained in:
parent
3d882a7ba5
commit
b617864cd9
13 changed files with 154 additions and 41 deletions
|
@ -15,6 +15,7 @@
|
|||
# limitations under the License.
|
||||
|
||||
import logging
|
||||
from typing import Set
|
||||
|
||||
from pkg_resources import (
|
||||
DistributionNotFound,
|
||||
|
@ -97,7 +98,7 @@ CONDITIONAL_REQUIREMENTS = {
|
|||
"jwt": ["pyjwt>=1.6.4"],
|
||||
}
|
||||
|
||||
ALL_OPTIONAL_REQUIREMENTS = set()
|
||||
ALL_OPTIONAL_REQUIREMENTS = set() # type: Set[str]
|
||||
|
||||
for name, optional_deps in CONDITIONAL_REQUIREMENTS.items():
|
||||
# Exclude systemd as it's a system-based requirement.
|
||||
|
@ -174,8 +175,8 @@ def check_requirements(for_feature=None):
|
|||
pass
|
||||
|
||||
if deps_needed:
|
||||
for e in errors:
|
||||
logging.error(e)
|
||||
for err in errors:
|
||||
logging.error(err)
|
||||
|
||||
raise DependencyException(deps_needed)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue