-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: use built in slog package * enhancement: replace log15 with slog * fix: remove go < 1.21 * chore: tidy imports * fix: lint errors * fix: revert IDE refactor * refactor: rename log.New to log.WithContext * refactor: update disco logging * chore: update log readme * fix: add license header
- Loading branch information
1 parent
e5d76aa
commit 810c4bd
Showing
42 changed files
with
1,563 additions
and
242 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.0.2 | ||
1.0.3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Copyright (c) 2024 The VeChainThor developers | ||
// | ||
// Distributed under the GNU Lesser General Public License v3.0 software license, see the accompanying | ||
// file LICENSE or <https://www.gnu.org/licenses/lgpl-3.0.html> | ||
|
||
package main | ||
|
||
import ( | ||
"github.com/vechain/thor/v2/log" | ||
"gopkg.in/urfave/cli.v1" | ||
) | ||
|
||
var ( | ||
addrFlag = cli.StringFlag{ | ||
Name: "addr", | ||
Value: ":55555", | ||
Usage: "listen address", | ||
} | ||
keyFileFlag = cli.StringFlag{ | ||
Name: "keyfile", | ||
Usage: "private key file path", | ||
Value: defaultKeyFile(), | ||
} | ||
keyHexFlag = cli.StringFlag{ | ||
Name: "keyhex", | ||
Usage: "private key as hex", | ||
} | ||
natFlag = cli.StringFlag{ | ||
Name: "nat", | ||
Value: "none", | ||
Usage: "port mapping mechanism (any|none|upnp|pmp|extip:<IP>)", | ||
} | ||
netRestrictFlag = cli.StringFlag{ | ||
Name: "netrestrict", | ||
Usage: "restrict network communication to the given IP networks (CIDR masks)", | ||
} | ||
verbosityFlag = cli.IntFlag{ | ||
Name: "verbosity", | ||
Value: log.LegacyLevelWarn, | ||
Usage: "log verbosity (0-9)", | ||
} | ||
) |
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.