Skip to content

Commit

Permalink
fix: remove debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
Gu1nness committed Oct 4, 2024
1 parent 86069e3 commit a3ef329
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/charms/mongodb/v1/mongodb_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

# Increment this PATCH version before using `charmcraft publish-lib` or reset
# to 0 if you are raising the major API version
LIBPATCH = 14
LIBPATCH = 13

logger = logging.getLogger(__name__)
REL_NAME = "database"
Expand Down Expand Up @@ -506,7 +506,6 @@ def _get_database_from_relation(relation: Relation) -> Optional[str]:
def _get_roles_from_relation(relation: Relation) -> Set[str]:
"""Return additional user roles from relation if specified or return None."""
roles = relation.data[relation.app].get("extra-user-roles", None)
logger.error(f"ROLES = {roles}")
if roles is not None:
return set(roles.split(","))
return {"default"}

0 comments on commit a3ef329

Please sign in to comment.