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

Commit 3c29e41

Browse files
authored
Merge pull request #511 from OpenBazaar/alex-miller-0-logging_fixes
Alex miller 0 logging fixes
2 parents 0553803 + b1b724e commit 3c29e41

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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
@@ -172,7 +172,7 @@ def on_bootstrap_complete(resp):
172172
logger.info("startup took %s seconds" % str(round(time.time() - args[7], 2)))
173173

174174
def shutdown():
175-
logger.info("shutting down server")
175+
print "OpenBazaar Server v0.2.4 shutting down..."
176176
for vendor in protocol.vendors.values():
177177
db.vendors.save_vendor(vendor.id.encode("hex"), vendor.getProto().SerializeToString())
178178
PortMapper().clean_my_mappings(PORT)
@@ -249,7 +249,7 @@ def start(self):
249249
parser.add_argument('-d', '--daemon', action='store_true',
250250
help="run the server in the background as a daemon")
251251
parser.add_argument('-t', '--testnet', action='store_true', help="use the test network")
252-
parser.add_argument('-l', '--loglevel', default="info",
252+
parser.add_argument('-l', '--loglevel', default="warning",
253253
help="set the logging level [debug, info, warning, error, critical]")
254254
parser.add_argument('-p', '--port', help="set the network port")
255255
parser.add_argument('-a', '--allowip', default=["127.0.0.1"], action="append",

0 commit comments

Comments
 (0)