New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update docs/DEEP_DIVE.md for zig changes #1431
Conversation
The failure is a spellcheck. It identifies one preexisting typo in DEEP_DIVE.md that I am not fixing here since presumably somebody else is looking at those. |
Oh the spelling error is part of this diff so I guess I must fix it to pass CI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The diff itself looks great!
- Open `src/config.zig` in your editor and change `log_level` to `.debug`. | ||
|
||
- Rebuild TigerBeetle using the new debug log level by running `zig/zig build -Drelease && mv zig-out/bin/tigerbeetle .` | ||
- Rebuild TigerBeetle with the debug log level by running `zig/zig build -Drelease -Dconfig-log-level=debug` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One item in our infinite TODO list is "make log level configurable at runtime"
zig/zig run src/demos/demo_01_create_accounts.zig --pkg-begin vsr src/vsr.zig | ||
zig/zig run src/demos/demo_02_lookup_accounts.zig --pkg-begin vsr src/vsr.zig | ||
zig/zig run src/demos/demo_01_create_accounts.zig --deps vsr --mod vsr::src/vsr.zig | ||
zig/zig run src/demos/demo_02_lookup_accounts.zig --deps vsr --mod vsr::src/vsr.zig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohhh, excellent catch!
9678ad3
to
15e537d
Compare
@matklad I rebased this onto the new main branch. |
I discovered this useful doc and tried to run through it. It needs some updates.
Setting the
log_level
variable onconfig.zig
does not work as described. It can be set on the command line while building.The
--pkg-begin
flag no longer exists.Also, the results I got running this tutorial contradicted what the text says should happen. I'll file a separate issue about it since I don't understand enough to just fix it. (#1432)