Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 16152e5

Browse files
committed
set warning logs to higher priority than info and updated default log setting to warning
1 parent 9e34976 commit 16152e5

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

log.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
from twisted.python import log
77

88
DEBUG = 5
9-
WARNING = 4
10-
INFO = 3
9+
INFO = 4
10+
WARNING = 3
1111
ERROR = 2
1212
CRITICAL = 1
1313

14-
levels = {"debug": 5, "warning": 4, "info": 3, "error": 2, "critical": 1}
14+
levels = {"debug": 5, "info": 4, "warning": 3, "error": 2, "critical": 1}
1515

1616
class FileLogObserver(log.FileLogObserver):
1717
def __init__(self, f=None, level="info", default=DEBUG):

openbazaard.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def on_bootstrap_complete(resp):
167167
logger.info("startup took %s seconds" % str(round(time.time() - args[7], 2)))
168168

169169
def shutdown():
170-
logger.info("shutting down server")
170+
print "OpenBazaar Server v0.1 shutting down..."
171171
for vendor in protocol.vendors.values():
172172
db.vendors.save_vendor(vendor.id.encode("hex"), vendor.getProto().SerializeToString())
173173
PortMapper().clean_my_mappings(PORT)
@@ -239,7 +239,7 @@ def start(self):
239239
parser.add_argument('-d', '--daemon', action='store_true',
240240
help="run the server in the background as a daemon")
241241
parser.add_argument('-t', '--testnet', action='store_true', help="use the test network")
242-
parser.add_argument('-l', '--loglevel', default="info",
242+
parser.add_argument('-l', '--loglevel', default="warning",
243243
help="set the logging level [debug, info, warning, error, critical]")
244244
parser.add_argument('-p', '--port', help="set the network port")
245245
parser.add_argument('-a', '--allowip', default=["127.0.0.1"], action="append",

0 commit comments

Comments
 (0)