Commit graph

35 commits

Author SHA1 Message Date
outfoxxed
7c5a6c4bd4
core/log: crash if Quickshell's log filter is installed twice
Crashes from recursion inside filterCategories through the old filter
have been observed. Presumably this means the log filter is getting
installed twice somehow. This should catch it.
2026-04-06 00:45:26 -07:00
Dan Aloni
eb6eaf59c7
core/log: add a mutex to protect stdoutStream
QTextStream is not thread safe.
2026-03-19 03:36:12 -07:00
-k
97b2688ad6
core/log: fix non-linux typo and import unistd on freebsd 2026-03-17 00:01:34 -07:00
outfoxxed
8d19beb69e
core/log: copy early logs with sendfile/readwrite again
copy_file_range does not work across devices and memfds count as a
separate device.
2026-01-08 02:35:08 -08:00
molyuu
6742148cf4
all: initial support for freebsd
Some checks failed
Build / Nix-4 (push) Has been cancelled
Build / Nix-5 (push) Has been cancelled
Build / Nix-6 (push) Has been cancelled
Build / Nix-7 (push) Has been cancelled
Build / Nix-8 (push) Has been cancelled
Build / Nix-9 (push) Has been cancelled
Build / Nix-10 (push) Has been cancelled
Build / Nix-11 (push) Has been cancelled
Build / Nix-12 (push) Has been cancelled
Build / Nix-13 (push) Has been cancelled
Build / Nix-14 (push) Has been cancelled
Build / Nix-15 (push) Has been cancelled
Build / Nix-16 (push) Has been cancelled
Build / Nix-17 (push) Has been cancelled
Build / Nix-18 (push) Has been cancelled
Build / Nix-19 (push) Has been cancelled
Build / Nix-20 (push) Has been cancelled
Build / Nix-21 (push) Has been cancelled
Build / Nix-22 (push) Has been cancelled
Build / Nix-23 (push) Has been cancelled
Build / Nix-24 (push) Has been cancelled
Build / Nix-25 (push) Has been cancelled
Build / Nix-26 (push) Has been cancelled
Build / Nix-27 (push) Has been cancelled
Build / Nix-28 (push) Has been cancelled
Build / Nix-29 (push) Has been cancelled
Build / Nix-30 (push) Has been cancelled
Build / Nix-31 (push) Has been cancelled
Build / Archlinux (push) Has been cancelled
Lint / Lint (push) Has been cancelled
- Use `copy_file_range(2)` over `sendfile(2)` which has wider
compatibility.
- Special case pam on freebsd and document `configDirectory`
incompatibility.
- Disable jemalloc for FreeBSD by default as it is the system allocator.
- Disable breakpad by default on FreeBSD as breakpad is not supported.
2026-01-06 01:50:58 -08:00
outfoxxed
0a7dcf30ea
build: update clang tooling and reformat 2025-11-15 04:43:27 -08:00
outfoxxed
1552aca3df
build: fix new clang-tidy lints 2025-11-15 04:29:12 -08:00
outfoxxed
c5c438f1cd
all: fix gcc warnings and lints 2025-10-04 13:43:41 -07:00
Derock
f7597cdae2
core/log: fix nullptr crash in ThreadLogging 2025-08-27 20:44:39 -07:00
outfoxxed
759bd721df
core/log: stop trying to store detailed logs after write fail
Not stopping will cause the logger's write buffer to fill until OOM if
writing fails.
2025-07-19 03:41:24 -07:00
outfoxxed
3d594e16dd
core/log: track default logging categories
Fixes a bug in fb37be7 which ignored default logging categories due to
skipping QLoggingRegistry's filter.
2025-07-08 13:49:06 -07:00
outfoxxed
fb37be7611
core/log: ignore on-disk logging configs for quickshell* rules.
Fixes fedora hiding all command output by default.
2025-07-04 16:43:01 -07:00
outfoxxed
09981a0498
core/log: print path to detailed log instead of text log on launch 2025-06-11 14:04:11 -07:00
outfoxxed
3fc1c914c7
lint: remove reinterpret_cast lint
Unhelpful.
2024-12-06 20:18:38 -08:00
outfoxxed
e957e88ccb
ci: run lints and test compile on arch 2024-11-24 02:09:41 -08:00
outfoxxed
b528be9426
all: fix gcc warnings 2024-11-05 13:31:24 -08:00
outfoxxed
3690812919
core/log: fix encoding 29 second deltas (again)
Forgot the second if statement and didn't actually fix the bug last time.
2024-09-10 16:30:50 -07:00
outfoxxed
01deefe241
core/log: encode category log levels 2024-09-10 04:48:54 -07:00
outfoxxed
a82fbf40c2
core/command: add log --follow 2024-09-10 03:31:49 -07:00
outfoxxed
c78381f6d0
core/command: add --tail to log subcommand 2024-09-10 01:02:43 -07:00
outfoxxed
3a1eec0ed5
core/log: fix sparse logs being on by default 2024-09-05 21:44:05 -07:00
outfoxxed
94e881e6b0
core!: refactor launch sequence
Also includes slight changes to the command syntax.
See --help for details.
2024-09-01 14:17:39 -07:00
outfoxxed
da043e092a
core/ipc: add ipc server/client
Currently can only kill a remote instance.
2024-08-30 21:45:20 -07:00
outfoxxed
fe1d15e8f6
crash: add crash reporter 2024-08-20 00:55:07 -07:00
outfoxxed
14852700cb
core/log: ensure malformed logs cannot overflow ring buffer 2024-08-10 01:40:51 -07:00
outfoxxed
5f4d7f89db
core/log: fix log corruption with messages at 29 second deltas
29, or 0x1d is used as a marker to mean the log level and time delta
cannot fit in a single byte, and the time delta will be a varint
following the current byte.

Prior to this commit, 29 second deltas would be written as 0x1d
instead of 0x1d1d, which the parser interpreted as a hint to read the
next byte, causing the parser to become offset by one byte and all
following logs to be potentially corrupt.
2024-08-10 01:35:52 -07:00
outfoxxed
53b8f1ee0b
core/log: add read-log --no-time 2024-08-09 23:58:30 -07:00
outfoxxed
c2b4610acb
core/log: add read-log --filter 2024-08-09 23:45:46 -07:00
outfoxxed
0fc98652a8
core/log: create fully detailed logs by default
The .qslog logs now log messages for quickshell* by default.
2024-08-09 20:24:17 -07:00
outfoxxed
291179ede2
core/command: rewrite command parser with CLI11 2024-08-09 19:25:18 -07:00
outfoxxed
bdbf5b9af9
core/log: add custom log encoder for smaller log storage
Will be used to store more detailed logs in the future without using
as much disk space.
2024-08-09 14:43:18 -07:00
outfoxxed
8364e94d26
core/log: capture early logs in fs logger 2024-08-07 15:53:11 -07:00
outfoxxed
7c7326ec52
core/log: add timestamps to log files 2024-08-07 13:40:37 -07:00
outfoxxed
6bf4826ae7
core/log: add filesystem logger 2024-08-02 21:37:52 -07:00
outfoxxed
46f48f2f87
core/log: add fancy logger 2024-08-02 18:52:05 -07:00