3
2
forked from Dniel97/artemis

remove unnecessassary print statements

This commit is contained in:
Hay1tsme 2023-02-24 14:13:31 -05:00
parent bd1665a849
commit cb227f9cf4
2 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
from typing import Dict, List, Any, Optional
from typing import Dict, Any
from types import ModuleType
import zlib, base64
import logging
import importlib
from os import walk
@ -17,6 +17,6 @@ class Utils:
ret[dir] = mod
except ImportError as e:
print(f"{dir} - {e}")
logging.getLogger("core").error(f"get_all_titles: {dir} - {e}")
raise
return ret

View File

@ -23,22 +23,22 @@ if __name__=='__main__':
elif args.action == "upgrade" or args.action == "rollback":
if args.version is None:
print("Must set game and version to migrate to")
data.logger.error("Must set game and version to migrate to")
exit(0)
if args.game is None:
print("No game set, upgrading core schema")
data.logger.info("No game set, upgrading core schema")
data.migrate_database("CORE", int(args.version))
else:
data.migrate_database(args.game, int(args.version), args.action)
elif args.action == "migrate":
print("Migrating from old schema to new schema")
data.logger.info("Migrating from old schema to new schema")
data.restore_from_old_schema()
elif args.action == "dump":
print("Dumping old schema to migrate to new schema")
data.logger.info("Dumping old schema to migrate to new schema")
data.dump_db()
elif args.action == "generate":