adjust logging to filter out some of the noise

This commit is contained in:
Morgan McMillian 2017-05-03 17:55:55 -07:00
parent bcae50b385
commit 8949029923
2 changed files with 3 additions and 3 deletions

View file

@ -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'

View file

@ -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)