change execution

bumper.start/shutdown
- allow envionrment variables (prep for docker)
- move bumper.db to new "data" directory
start_bumper reworked
- use argparse
This commit is contained in:
Brian Martin 2019-06-06 22:46:40 -04:00
parent 1f945ba7cd
commit 72f3b5d049
6 changed files with 197 additions and 157 deletions

View file

@ -300,8 +300,8 @@ class BumperMQTTServer_Plugin:
"eco-ng",
)
mqttserverlog.debug(
"new bot authenticated SN: {} DID: {}".format(
mqttserverlog.info(
"bot authenticated SN: {} DID: {}".format(
username, didsplit[0]
)
)
@ -324,7 +324,7 @@ class BumperMQTTServer_Plugin:
if auth:
bumper.client_add(userid, realm, resource)
mqttserverlog.debug(
mqttserverlog.info(
"client authenticated {}".format(userid)
)
authenticated = True