You can configure the OSPF log function to record OSPF configurations and error information.
system-view
ospf [ process-id ]
enable log [ config | error | state | snmp-trap ]