-
Notifications
You must be signed in to change notification settings - Fork 49
Fixes #112: Migrate to std.logger (no longer experimental since DMD 2.101.0) #113
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
Fixes #112: Migrate to std.logger (no longer experimental since DMD 2.101.0) #113
Conversation
… since DMD 2.101.0) to std.logger. - Removed explicit references to `sharedLogger`, which are now explicitly of `shared` type. Replaced with calls to base function, e.g. `warnf`, which routes to the default logger. See https://dlang.org/changelog/2.101.0.html#logger_sharedLog_returning_shared_logger - Replaced imports of `std.experimental.logger` with `std.logger`, because `std.experimental.logger` has been deprecated since DMD 2.101.0.
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.
this will fail on older compilers and ddbc needs to support a range of versions. please keep the static if but amend it so that it'll work with compilers where it was still in std.experimental
I made a provisional change that I think will work, but I need to set up multiple D versions to validate locally. Looks like I need to get |
Using |
thanks for the changes. I'm not concerned about the x2 failed builds on mac as it seems macos-latest has gone from 11.7 to 12.6.2 so that'll be the reason. However the integration tests are failing because in fact perhaps it's best to simply put the import at the top of the file like this: static if(__traits(compiles, (){ import std.logger; } )) {
import std.logger;
} else {
import std.experimental.logger;
} |
Will do. I wasn't aware of those test files, but according to the build
tool, I can see that `build run --config=test` is required to access those
tests.
…On Fri, Jan 6, 2023 at 7:12 PM Samael ***@***.***> wrote:
thanks for the changes. I'm not concerned about the x2 failed builds on
mac as it seems macos-latest has gone from 11.7 to 12.6.2 so that'll be the
reason. However the integration tests are failing because
source/ddbc/pods.d still needs to be wrapped in *static if* the same as
the other files
—
Reply to this email directly, view it on GitHub
<#113 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKGNHFPPEMXGKQMNPVXUITWRBOBJANCNFSM6AAAAAATTFZTVE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
sharedLogger
, which are now explicitly ofshared
type. Replaced with calls to base function, e.g.warnf
, which routes to the default logger. See https://dlang.org/changelog/2.101.0.html#logger_sharedLog_returning_shared_loggerstd.experimental.logger
withstd.logger
, becausestd.experimental.logger
has been deprecated since DMD 2.101.0.