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:
parent
53c4751f31
commit
2b35755f6c
|
@ -28,7 +28,7 @@ fn LogStruct(c: anytype, comptime module_name: []const u8, comptime buf_size: us
|
||||||
};
|
};
|
||||||
|
|
||||||
const g_level = switch (level) {
|
const g_level = switch (level) {
|
||||||
.err => c.G_LOG_LEVEL_ERROR,
|
.err => c.G_LOG_LEVEL_CRITICAL,
|
||||||
.warn => c.G_LOG_LEVEL_WARNING,
|
.warn => c.G_LOG_LEVEL_WARNING,
|
||||||
.info => c.G_LOG_LEVEL_INFO,
|
.info => c.G_LOG_LEVEL_INFO,
|
||||||
.debug => c.G_LOG_LEVEL_DEBUG,
|
.debug => c.G_LOG_LEVEL_DEBUG,
|
||||||
|
|
Loading…
Reference in a new issue