Skip to content

Commit

Permalink
Merge pull request #48 from devilbox/release-1.0.6
Browse files Browse the repository at this point in the history
Streamline logging
  • Loading branch information
cytopia authored Dec 18, 2022
2 parents a6e261f + aea952d commit cb42b05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions bin/vhost-gen
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if os.environ.get("MYPY_CHECK", False):
# --------------------------------------------------------------------------------------------------
APPNAME = "vhost-gen"
APPREPO = "https://github.com/devilbox/vhost-gen"
VERSION = "1.0.5"
VERSION = "1.0.6"
RELDATE = "2022-12-18"

# Default paths
Expand Down Expand Up @@ -91,13 +91,13 @@ def log(level, message, verbosity):
# stime = time.strftime("%Y-%m-%d %H:%M:%S")

if level == 0:
print("vhost-gen: \x1b[31;21m[ERROR] %s\x1b[0m" % (message), file=sys.stderr)
print("vhost-gen: \x1b[31;21m[ERR] %s\x1b[0m" % (message), file=sys.stderr)
elif level == 1:
print("vhost-gen: \x1b[33;21m[WARN] %s\x1b[0m" % (message), file=sys.stderr)
print("vhost-gen: \x1b[33;21m[WARN] %s\x1b[0m" % (message), file=sys.stderr)
elif level == 2 and verbosity >= 1:
print("vhost-gen: [INFO] %s" % (message), file=sys.stderr)
print("vhost-gen: [INFO] %s" % (message), file=sys.stderr)
elif level == 3 and verbosity >= 2:
print("vhost-gen: [DEBUG] %s" % (message), file=sys.stderr)
print("vhost-gen: [DBG] %s" % (message), file=sys.stderr)


def print_help():
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name="vhost-gen",
version="1.0.5",
version="1.0.6",
description="Configurable vHost generator for Apache 2.2, Apache 2.4 and Nginx.",
license="MIT",
long_description=long_description,
Expand Down

0 comments on commit cb42b05

Please sign in to comment.