Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

microsoft_teams_importer: Warn using logging.warning if no realm owner.

PieterCK2d00654df911
diff --git a/zerver/data_import/microsoft_teams.py b/zerver/data_import/microsoft_teams.py
index 161d05e4654..0fc9f7e4f4e 100644
--- a/zerver/data_import/microsoft_teams.py
+++ b/zerver/data_import/microsoft_teams.py
@@ -388,7 +388,7 @@ def convert_users(
)
if not has_owner:
- logging.info("Converted realm has no owners!")
+ logging.warning("Converted realm has no owners!")
validate_user_emails_for_import(list(found_emails))
realm["zerver_userprofile"] = zerver_user_profile
diff --git a/zerver/tests/test_microsoft_teams_importer.py b/zerver/tests/test_microsoft_teams_importer.py
index 1ffba6f4ea2..b73e699be38 100644
--- a/zerver/tests/test_microsoft_teams_importer.py
+++ b/zerver/tests/test_microsoft_teams_importer.py
@@ -529,7 +529,7 @@ class MicrosoftTeamsImporterUnitTest(MicrosoftTeamsImportTestCase):
microsoft_teams_user_role_data=microsoft_teams_user_role_data
)
self.assertIn(
- "INFO:root:Converted realm has no owners!",
+ "WARNING:root:Converted realm has no owners!",
info_logs.output,
)