@@ -45,6 +45,7 @@ def run(*args):
4545 RESTPORT = args [4 ]
4646 WSPORT = args [5 ]
4747 HEARTBEATPORT = args [6 ]
48+ AUDIT = args [7 ]
4849
4950 def start_server (keys , first_startup = False ):
5051 # logging
@@ -109,7 +110,7 @@ def on_bootstrap_complete(resp):
109110 protocol .register_processor (kserver .protocol )
110111
111112 # market
112- mserver = network .Server (kserver , keys .signing_key , db )
113+ mserver = network .Server (kserver , keys .signing_key , db , AUDIT )
113114 mserver .protocol .connect_multiplexer (protocol )
114115 protocol .register_processor (mserver .protocol )
115116
@@ -247,6 +248,7 @@ def start(self):
247248 parser .add_argument ('-r' , '--restapiport' , help = "set the rest api port" , default = 18469 )
248249 parser .add_argument ('-w' , '--websocketport' , help = "set the websocket api port" , default = 18466 )
249250 parser .add_argument ('-b' , '--heartbeatport' , help = "set the heartbeat port" , default = 18470 )
251+ parser .add_argument ('-u' , '--disableaudit' , action = 'store_true' , help = "disable event logging" )
250252 parser .add_argument ('--pidfile' , help = "name of the pid file" , default = "openbazaard.pid" )
251253 args = parser .parse_args (sys .argv [2 :])
252254
@@ -262,11 +264,11 @@ def start(self):
262264 self .daemon .pidfile = "/tmp/" + args .pidfile
263265 self .daemon .start (args .testnet , args .loglevel , port , args .allowip ,
264266 int (args .restapiport ), int (args .websocketport ),
265- int (args .heartbeatport ), time .time ())
267+ int (args .heartbeatport ), time .time (), args . disableaudit )
266268 else :
267269 run (args .testnet , args .loglevel , port , args .allowip ,
268270 int (args .restapiport ), int (args .websocketport ),
269- int (args .heartbeatport ), time .time ())
271+ int (args .heartbeatport ), time .time (), args . disableaudit )
270272
271273 def stop (self ):
272274 # pylint: disable=W0612
0 commit comments