Skip to content

Commit

Permalink
Fix logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-Dickinson committed Nov 22, 2024
1 parent 3560656 commit b8ab6b5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions supportbot/supportbot/cli/bot_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
from supportbot.constants import DEFAULT_CHANNEL_IDS, DEFAULT_NETWORK_NUMBER_PROPERTY_ID


logging.basicConfig(level=logging.INFO)

@click.command()

@click.option(
Expand All @@ -20,12 +22,6 @@
help="The Slack ID number for the user property containing their network number"
)
def main(channel_ids, nn_property_id):
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO) # Set log level to INFO
handler = logging.StreamHandler()
handler.setFormatter(logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s"))
logger.addHandler(handler)

supportbot.app.run_app({
'channel_ids': channel_ids,
'nn_property_id': nn_property_id
Expand Down

0 comments on commit b8ab6b5

Please sign in to comment.