def get_dblogger_extra(node):
    """Return the additional information necessary to attach any log records to the given node instance.

    :param node: a Node instance
    """
    from aiida.orm import Node
    if not isinstance(node, Node) or not node.is_stored:
        return dict()
    return {'dbnode_id': node.id, 'backend': node.backend}
