From 81279f4ed2f7339bfa3c4d2e344aad4999ec78f2 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 25 May 2014 22:58:53 +0200 Subject: [PATCH] debug --- oml/changelog.py | 2 +- oml/localnodes.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/oml/changelog.py b/oml/changelog.py index 935656e..9712369 100644 --- a/oml/changelog.py +++ b/oml/changelog.py @@ -89,7 +89,7 @@ class Changelog(db.Model): c.data = data c.sig = sig args = json.loads(data) - logger.debug('apply change %s', args) + logger.debug('apply change from %s: %s', user.name, args) if getattr(c, 'action_' + args[0])(user, timestamp, *args[1:]): logger.debug('change applied') db.session.add(c) diff --git a/oml/localnodes.py b/oml/localnodes.py index 49eebff..ab0aa2f 100644 --- a/oml/localnodes.py +++ b/oml/localnodes.py @@ -111,6 +111,7 @@ class LocalNodesBase(Thread): u = user.models.User.get_or_create(data['id']) u.info['username'] = data['username'] u.info['local'] = data + u.update_name() u.save() state.nodes.queue('add', u.id) self.send()