adjust logging to filter out some of the noise
This commit is contained in:
parent
bcae50b385
commit
8949029923
2 changed files with 3 additions and 3 deletions
|
@ -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'
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue