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

Unrequire logger #1732

Merged
merged 1 commit into from
Jan 31, 2021
Merged

Unrequire logger #1732

merged 1 commit into from
Jan 31, 2021

Conversation

saltycrys
Copy link
Member

Crystal's Logger was required but never used in Invidious. Crystal 0.36.0
removed Logger in favor of Log.

Closes #1719.

Crystal's `Logger` was required but never used in Invidious. Crystal 0.36.0
removed `Logger` in favor of `Log`.
@saltycrys saltycrys merged commit 909285e into iv-org:master Jan 31, 2021
@saltycrys saltycrys deleted the unrequire-logger branch January 31, 2021 02:55
@FireMasterK
Copy link
Contributor

Shouldn't #1718 be reverted then?

@Perflyst
Copy link
Contributor

I just tested but something is still broken with latest crystal, https://github.com/iv-org/invidious/runs/1800875655


In src/invidious/helpers/proxy.cr:76:7

 76 | @socket = nil
      ^
Error: instance variable @socket of HTTPClient was inferred to be Nil, but Nil alone provides no information
Error: Process completed with exit code 1.

@saltycrys
Copy link
Member Author

I think pinning the Crystal version is a good thing. It's already pinned in the Dockerfile and dependencies might require a specific version.

I'll look into upgrading Invidious for Crystal 0.36.0 though.

@tenpura-shrimp
Copy link

tenpura-shrimp commented Jan 31, 2021

Looks like this change in the release notes

https://crystal-lang.org/2021/01/26/crystal-0.36.0-released.html

A second breaking-change that affects C bindings is that a Crystal nil value is no longer translated to a null pointer value. Read more at #9872.

Edit: maybe not

@saltycrys
Copy link
Member Author

It's crystal-lang/crystal#9543, see #1734.

@github-actions
Copy link

github-actions bot commented Jun 9, 2021

This pull request has been automatically locked since there has not been any activity in it in the last 30 days. If you want to tell us about needed or wanted changes or if problems related to this code are discovered, feel free to open an issue or a new pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate deprecated logger - broken build
4 participants