mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
fix: process packets received and send to quic
This commit is contained in:
@ -144,19 +144,14 @@ def main() -> None:
|
||||
type=int,
|
||||
help="provide a seed to the random number generator",
|
||||
)
|
||||
parser.add_argument(
|
||||
"-log",
|
||||
"--loglevel",
|
||||
default="DEBUG",
|
||||
help="Provide logging level. Example --loglevel debug, default=warning",
|
||||
)
|
||||
args = parser.parse_args()
|
||||
logging.basicConfig(level=args.loglevel.upper())
|
||||
|
||||
try:
|
||||
trio.run(run, args.port, args.destination, args.seed)
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
|
||||
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user