Skip to content

Commit

Permalink
Downgrade informational messages from warning level
Browse files Browse the repository at this point in the history
Fixes 13464

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.
  • Loading branch information
hgohel committed Oct 10, 2024
1 parent fb91938 commit 0a9a9ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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,9 +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(
logging.info(
"Done importing old config file '%s'", previous_grampsini
)
break
Expand Down

0 comments on commit 0a9a9ed

Please sign in to comment.