Add session to mqtt
Add session to mqtt
This commit is contained in:
parent
4080f0f950
commit
a1ff95cc23
1 changed files with 2 additions and 1 deletions
|
|
@ -339,6 +339,7 @@ class BumperMQTTServer_Plugin:
|
||||||
tmpbotdetail[1],
|
tmpbotdetail[1],
|
||||||
"eco-ng",
|
"eco-ng",
|
||||||
)
|
)
|
||||||
|
|
||||||
mqttserverlog.debug(
|
mqttserverlog.debug(
|
||||||
"new bot authenticated SN: {} DID: {}".format(
|
"new bot authenticated SN: {} DID: {}".format(
|
||||||
username, didsplit[0]
|
username, didsplit[0]
|
||||||
|
|
@ -372,7 +373,7 @@ class BumperMQTTServer_Plugin:
|
||||||
authenticated = False
|
authenticated = False
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
mqttserverlog.exception("{}".format(e))
|
mqttserverlog.exception("Session: {} - {}".format((kwargs.get("session", None)),e))
|
||||||
authenticated = False
|
authenticated = False
|
||||||
|
|
||||||
return authenticated
|
return authenticated
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue