Skip to content

Commit

Permalink
Add logging to merge.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fzakaria committed Apr 9, 2024
1 parent 353635c commit e9727b3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sqlelf/tools/merge.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import argparse
import logging
import os
import sys
from dataclasses import dataclass, field
Expand Down Expand Up @@ -30,6 +31,12 @@ def start(args: list[str] = sys.argv[1:], stdin: TextIO = sys.stdin) -> None:
args: the command line arguments to parse
stdin: the stdin to use if invoking the shell
"""
# Setup the logging config
logging.basicConfig(
level=logging.INFO,
format="%(asctime)s %(levelname)-8s [%(filename)s:%(lineno)d] %(message)s",
)

parser = argparse.ArgumentParser(
prog="sqlelf-merge",
description="Merge multiple sqlelf SQLITE databases into a single one.",
Expand Down

0 comments on commit e9727b3

Please sign in to comment.