Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downgrade informational messages from warning level #1784

Open
wants to merge 2 commits into
base: maintenance/gramps52
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions gramps/gen/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,9 +403,9 @@ def emit(key):
# If not, let's read old if there:
if os.path.exists(os.path.join(USER_CONFIG, "keys.ini")):
# read it in old style:
logging.warning("Importing old key file 'keys.ini'...")
logging.info("Importing old key file 'keys.ini'...")
CONFIGMAN.load(os.path.join(USER_CONFIG, "keys.ini"), oldstyle=True)
logging.warning("Done importing old key file 'keys.ini'")
logging.info("Done importing old key file 'keys.ini'")
# other version upgrades here...
# check previous version of gramps:
fullpath, filename = os.path.split(CONFIGMAN.filename)
Expand All @@ -424,11 +424,9 @@ def emit(key):
digits = str(int(match.groups()[0]) - i)
previous_grampsini = os.path.join(fullpath, "gramps" + digits, filename)
if os.path.exists(previous_grampsini):
logging.warning("Importing old config file '%s'...", previous_grampsini)
logging.info("Importing old config file '%s'...", previous_grampsini)
CONFIGMAN.load(previous_grampsini)
logging.warning(
"Done importing old config file '%s'", previous_grampsini
)
logging.info("Done importing old config file '%s'", previous_grampsini)
break

# ---------------------------------------------------------------
Expand Down