Skip to content

fix: correct broken log statement in embed_in_index#293

Open
allamiro wants to merge 1 commit into
lixmal:masterfrom
allamiro:fix/embed-index-log
Open

fix: correct broken log statement in embed_in_index#293
allamiro wants to merge 1 commit into
lixmal:masterfrom
allamiro:fix/embed-index-log

Conversation

@allamiro

@allamiro allamiro commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Fixes #284.

Problem

route/auth.rs logged info!("user login from '{}': ", err) — the error was interpolated where the username belongs and the actual error message was dropped, making index-file read failures undebuggable.

Change

Log the failure as error!("failed to read index file: {}", err) — correct severity and the real cause.

Testing

Full cargo test suite passes (9/9) in a rust:1.83 container.


Summary by cubic

Fixes incorrect logging in embed_in_index that misattributed errors to a user login message. Now logs index file read failures at error level with the actual error message for easier debugging.

Written for commit 5757f7b. Summary will update on new commits.

Review in cubic

The error path logged "user login from '{}': " with the error
interpolated where the username should be, dropping the actual message.
Log the read failure itself at error level instead.
@allamiro allamiro force-pushed the fix/embed-index-log branch from 5757f7b to 0d953be Compare June 13, 2026 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Broken log statement in embed_in_index

1 participant