fix: use G_LOG_LEVEL_CRITICAL instead of error

G_LOG_LEVEL_ERROR causes the program to abort, which is not intended.
This commit is contained in:
LordMZTE 2022-07-18 17:45:59 +02:00
parent 53c4751f31
commit 2b35755f6c
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6

View file

@ -28,7 +28,7 @@ fn LogStruct(c: anytype, comptime module_name: []const u8, comptime buf_size: us
};
const g_level = switch (level) {
.err => c.G_LOG_LEVEL_ERROR,
.err => c.G_LOG_LEVEL_CRITICAL,
.warn => c.G_LOG_LEVEL_WARNING,
.info => c.G_LOG_LEVEL_INFO,
.debug => c.G_LOG_LEVEL_DEBUG,