The load() method for Universe class objects accumulates potential
log entries because it can be called when logging hasn't been set up
yet (for example, early at service start). When called during a
reload, these messages were previously discarded. Instead, add them
to the loglines attribute of the new universe so they will get
properly logged.
old_loglines = universe.loglines[:]
for element in list(universe.contents.values()):
element.destroy()
- universe.load()
+ pending_loglines = universe.load()
new_loglines = universe.loglines[:]
- universe.loglines = old_loglines + new_loglines
+ universe.loglines = old_loglines + new_loglines + pending_loglines
for user in old_userlist:
user.reload()