Logging should be used to report errors and for debugging purposes. It must not be used to report attacks. Incidents should be used for this purpose. For more information have a look at the ihandler section.
Comparison glib2 and Python
In glib2 a critical message means critical warning. But in Python a critical message is handled as critical error.
An error message in glib2 or a critical message in a Python module will terminate the program immediately.