diff --git a/src/python/jw/pkg/App.py b/src/python/jw/pkg/App.py index 35b71579..48eaf7ac 100644 --- a/src/python/jw/pkg/App.py +++ b/src/python/jw/pkg/App.py @@ -6,6 +6,8 @@ import os, sys, argparse, pwd, re from .lib.App import App as Base +from .lib.log import * + from .cmds.build import * # meaning of pkg.requires.xxx variables @@ -59,7 +61,6 @@ class App(Base): self.dep_cache = {} self.my_dir = os.path.dirname(os.path.realpath(__file__)) - self.opt_debug = False self.res_cache = ResultCache() self.topdir = None @@ -93,14 +94,13 @@ class App(Base): return await super()._run(args) def debug(self, *objs): - if self.opt_debug: - print("DEBUG: ", *objs, file = sys.stderr) + log(DEBUG, *objs) def warn(self, *objs): - print("WARNING: ", *objs, file = sys.stderr) + log(WARNING, *objs) def err(self, *objs): - print("ERR: ", *objs, file = sys.stderr) + log(ERR, *objs) def proj_dir(self, name): if name == self.top_name: