Skip to content
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

[ts-sdk] Add logger #901

Merged
merged 1 commit into from
Dec 18, 2024
Merged

[ts-sdk] Add logger #901

merged 1 commit into from
Dec 18, 2024

Conversation

wkozyra95
Copy link
Member

I keep adding and removing console logs when debuging, so I added a structured logging library to leave some useful logs in place without spamming users.

I also adjusted the defaults for logging especially for wasm. I want logger configuration to be exposed to user somehow eventually, but for now this is only intended for our use

@wkozyra95 wkozyra95 changed the title Add logger [ts-sdk] Add logger Dec 18, 2024
@wkozyra95 wkozyra95 force-pushed the @wkozyra95/ts-sdk-add-logger branch 2 times, most recently from 5c631d5 to a8c95c6 Compare December 18, 2024 10:28
return this.api.registerImage(imageId, intoRegisterImage(request));
}

public async registerWebRenderer(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

web rendering does not make sense for offline processing because we can't control how fast chrome renders.
I guess it could be used just to render something static, but for now, I think it is better to just disallow it entirely.

@wkozyra95 wkozyra95 force-pushed the @wkozyra95/ts-sdk-add-logger branch from a8c95c6 to 5cd63d0 Compare December 18, 2024 10:47
@wkozyra95 wkozyra95 marked this pull request as ready for review December 18, 2024 10:52
@wkozyra95 wkozyra95 requested review from noituri and BrtqKr December 18, 2024 10:52
Base automatically changed from @wkozyra95/ts-sdk-mp4-offline-processing to master December 18, 2024 11:25
@wkozyra95 wkozyra95 force-pushed the @wkozyra95/ts-sdk-add-logger branch from 5cd63d0 to 8da2701 Compare December 18, 2024 12:19
@wkozyra95 wkozyra95 merged commit 71dd937 into master Dec 18, 2024
5 checks passed
@wkozyra95 wkozyra95 deleted the @wkozyra95/ts-sdk-add-logger branch December 18, 2024 12:45
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.

2 participants