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

make politeia into a standalone package #262

Merged
merged 1 commit into from Aug 23, 2022

Conversation

itswisdomagain
Copy link
Contributor

Helpful for the coming changes to separate dcr wallet specifics into a separate package.

Copy link
Contributor

@dreacot dreacot left a comment

Choose a reason for hiding this comment

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

LGTM

@dreacot dreacot merged commit 936647c into planetdecred:master Aug 23, 2022
@itswisdomagain itswisdomagain deleted the politeia branch August 23, 2022 19:54
Comment on lines -105 to -123
// UseLoggers sets the subsystem logs to use the provided loggers.
func UseLoggers(main, loaderLog, walletLog, tkbyLog,
syncLog, cmgrLog, amgrLog slog.Logger) {
log = main
loader.UseLogger(loaderLog)
wallet.UseLogger(walletLog)
udb.UseLogger(walletLog)
ticketbuyer.UseLogger(tkbyLog)
spv.UseLogger(syncLog)
p2p.UseLogger(syncLog)
connmgr.UseLogger(cmgrLog)
addrmgr.UseLogger(amgrLog)
}

// UseLogger sets the subsystem logs to use the provided logger.
func UseLogger(logger slog.Logger) {
UseLoggers(logger, logger, logger, logger, logger, logger, logger)
}

Copy link
Contributor

@dreacot dreacot Sep 13, 2022

Choose a reason for hiding this comment

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

@itswisdomagain why did we remove the UseLogger() method

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.

None yet

2 participants