mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-25 17:45:55 +02:00
jw.pkg.App: Use lib.log
Replace print() by log(). Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
1f26391452
commit
737f3986df
1 changed files with 5 additions and 5 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue