Skip to content

Commit

Permalink
Prepare for merge
Browse files Browse the repository at this point in the history
  • Loading branch information
antonymilne committed May 20, 2024
1 parent 1ef4551 commit c8892d1
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions vizro-core/src/vizro/managers/_data_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,7 @@
from vizro.managers._managers_utils import _state_modifier


# Just for the purposes of easily seeing the right debug messages. Remove before merging to main and revert to this:
# logger = logging.getLogger(__name__)
class PrefixAdapter(logging.LoggerAdapter):
def process(self, msg, kwargs):
return f"[DATA MANAGER] {msg}", kwargs


logger = PrefixAdapter(logging.getLogger(__name__), {})
logger.setLevel(logging.DEBUG)
#####################
logger = logging.getLogger(__name__)

# Really DataSourceName should be NewType and not just aliases but then for a user's code to type check
# correctly they would need to cast all strings to these types.
Expand Down

0 comments on commit c8892d1

Please sign in to comment.