Skip to content

Commit

Permalink
UPD: update logging strings
Browse files Browse the repository at this point in the history
  • Loading branch information
desty2k committed Jul 9, 2021
1 parent ece4fe9 commit 18aebac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions paker/jsonimporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def find_module(self, fullname, path=None):
The optional 'path' argument is ignored -- it's there for compatibility
with the importer protocol.
"""
self.logger.debug("[?] Searching for {}".format(fullname))
self.logger.debug("searching for {}".format(fullname))
return self.find_loader(fullname, path)[0]

# Load and return the module named by 'fullname'.
Expand All @@ -72,7 +72,7 @@ def load_module(self, fullname):
return mod

if fullname in self.module_cache:
self.logger.info("[=] Loading previously imported module {}".format(fullname))
self.logger.info("loading previously imported module {}".format(fullname))
return self.module_cache[fullname]

try:
Expand Down Expand Up @@ -119,7 +119,7 @@ def load_module(self, fullname):
except KeyError:
raise PakerImportError("loaded module {} not found in sys.modules".format(fullname))

self.logger.info("[+] {} has been imported successfully".format(mod.__name__))
self.logger.info("{} has been imported successfully".format(mod.__name__))
self.module_cache[fullname] = mod
return mod

Expand Down
2 changes: 1 addition & 1 deletion paker/paker.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def _read_module_code(path: str, compile_module):
code = base64.b64encode(marshal.dumps(compile(code, path, "exec", optimize=2))).decode()
extension = "pyc"
except Exception as e:
raise PakerDumpError("failed to compile {} module: {}".format(path, e))
raise PakerDumpError("failed to compile module {}: {}".format(path, e))

elif extension in ("pyc", "dll", "pyd", "so"):
with open(path, "rb") as f:
Expand Down

0 comments on commit 18aebac

Please sign in to comment.