Skip to content

Commit

Permalink
Downgrade informational messages from warning level
Browse files Browse the repository at this point in the history
In upgrade scenarios informational messages that indicate old config
files are being imported into the new config are now being treated as
informational rather than warnings which may alarm the reader.

Fixes 13464
  • Loading branch information
hgohel authored and Nick-Hall committed Dec 17, 2024
1 parent af88f33 commit 2ee2bcc
Showing 1 changed file with 4 additions and 6 deletions.
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

0 comments on commit 2ee2bcc

Please sign in to comment.