Skip to content

Commit

Permalink
user logger
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh committed May 3, 2023
1 parent 3bbb7c4 commit 9f07e03
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
down_revision = "07f9a902af1b"

import json
import logging

import sqlalchemy as sa
from alembic import op
Expand All @@ -36,6 +37,8 @@

Base = declarative_base()

logger = logging.getLogger()


class Slice(Base): # type: ignore
__tablename__ = "slices"
Expand Down Expand Up @@ -69,7 +72,7 @@ def upgrade():
session.add(slc)

else:
print(
logger.info(
f"unknown value detected for slc.datasource_type: {slc.datasource_type}"
)

Expand Down

0 comments on commit 9f07e03

Please sign in to comment.