mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
main: disable stderr logging by default for lib
This commit is contained in:
@ -233,6 +233,11 @@ pub const GlobalState = struct {
|
|||||||
// output.
|
// output.
|
||||||
if (self.action != null) self.logging = .{ .disabled = {} };
|
if (self.action != null) self.logging = .{ .disabled = {} };
|
||||||
|
|
||||||
|
// For lib mode we always disable stderr logging by default.
|
||||||
|
if (comptime build_config.app_runtime == .none) {
|
||||||
|
self.logging = .{ .disabled = {} };
|
||||||
|
}
|
||||||
|
|
||||||
// I don't love the env var name but I don't have it in my heart
|
// I don't love the env var name but I don't have it in my heart
|
||||||
// to parse CLI args 3 times (once for actions, once for config,
|
// to parse CLI args 3 times (once for actions, once for config,
|
||||||
// maybe once for logging) so for now this is an easy way to do
|
// maybe once for logging) so for now this is an easy way to do
|
||||||
|
Reference in New Issue
Block a user