diff --git a/appservice.py b/appservice.py index 721c18d..a079f72 100644 --- a/appservice.py +++ b/appservice.py @@ -18,7 +18,7 @@ def on_receive_events(transaction): events = request.get_json()["events"] for event in events: - logging.debug(event) + logging.info(event) user = MatrixUser.query.filter_by(matrix_id=event["user_id"]).first() if (event['type'] == 'm.room.message' diff --git a/pnut-bridge.py b/pnut-bridge.py index a3999a3..6821f39 100644 --- a/pnut-bridge.py +++ b/pnut-bridge.py @@ -51,7 +51,7 @@ class ChannelMonitor(threading.Thread): r = requests.post(url, params=params, data=json.dumps(data)) if r.status_code == 200: logging.info('REGISTERED USER: ' + username) - logging.debug(r.text) + logging.info(r.text) def set_displayname(self, muser): url = self.matrix_api_url + '/profile/' + muser['user_id'] + '/displayname' @@ -172,7 +172,7 @@ if __name__ == '__main__': with open("config.yaml", "rb") as config_file: config = yaml.load(config_file) - logging.basicConfig(level=logging.DEBUG) + logging.basicConfig(level=logging.INFO) app.config.update(config)