'Write the message into the transaction log.
Args:
grr_message: A GrrMessage instance.'

def WriteTransactionLog(self, grr_message):

    grr_message = grr_message.SerializeToString()
    try:
        _winreg.SetValueEx(self._GetKey(), 'Transaction', 0, _winreg.REG_BINARY, grr_message)
        NannyController.synced = False
    except exceptions.WindowsError:
        pass
