-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates bulletin board command to use PrettyLogger and slog instead of logrus. Renames `PrettyLogger.InitDefault()` to `pl.SetUpLogrusAndSlog(logLevel)`. Removes `config.InitConfig()` and replaces it with `config.InitGlobal()` in multiple commands. Updates `main.go` in the `bulletin-board` command to use the new `pl` and `slog` packages. Renames `main.go` in the `clients` command to `newClient.go` and updates it to use PrettyLogger and slog instead of logrus. Renames `main.go` in the `node` command to `newNode.go` and updates it to use PrettyLogger and slog instead of logrus. Updates the `client` and `node` packages to use PrettyLogger and slog instead of logrus. Description: This change updates the logging mechanism in the `bulletin-board`, `clients`, and `node` commands to use PrettyLogger and slog instead of logrus. This change removes the `PrettyLogger` and `logrus` packages from the `bulletin-board`, `clients`, and `node` commands and replaces them with `pl` and `slog` packages. The `initConfig` function was also replaced with `initGlobal` in the `clients` and `nodes` commands. This change should improve the stability and reliability of the logging mechanism in these commands.
- Loading branch information
1 parent
f9e1b3c
commit 9033c8c
Showing
24 changed files
with
855 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.