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

Added an example how to adjust log levels #1928

Merged
merged 2 commits into from
Mar 26, 2021

Conversation

miohtama
Copy link
Contributor

What was wrong?

Debug logging is too verbose, no idea how to tune it down.

How was it fixed?

Added an example to tune down most common log levels from JSON-RPC internals.

Cute Animal Picture

                                 .a@@@@@a.     ,a@@@@@@@@a,     .a@@@@@a. 
                              .@@@@@@@@@@@a,a@@@@@@@@@@@@@@a,a@@@@@@@@@@@. 
                              @@@@@@@@@@@@a@@@@@@@@@@@@@@@@@@a@@@@@@@@@@@@ 
                               @@@@'    `@a@@@@@@@@@@@@@@@@@@@@a@'   `@@@@ 
                               `@'        @@@@@@@@@@@@@@@@@@@@@@       `@' 
              .########################## @@@@@@@@@"@@@"@@@@@@@@ 
           .##############################`@@@@@@@@a@@@a@@@@@@@' 
         .#####################;;#########,@@@@@@@@@@@@@@@@@@@@, 
       ,;;;;;######;;;;#####;;;;;;;##;;;,@@@@@@@@@@@@@@@@@@@@@@@@, 
     ,;;;;;;;;;;;;;;;;;;###;;;;;;;;;;;;;@@@@@( )@@@@@@@@@@( )@@@@@ 
    ;;';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;`@@@@@@@@@@@@@@@@@@@@@@@@' 
   ;;';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;`@@@@@@@@@@@@@@@@@@@@', 
  ;;' ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; """""""""""""",;;  ', 
 ;;'  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;    ', 
;;;;  ###;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;####;;;;;;;;;;;;;;      ; 
`;;'  ####;;;##;;;;;;;;;;;;;;;;;;;;;;;;;;###########;;;;;;;;;;;    ,' 
  `   ##########;;;;;;;'''''''''''''''''''''''''''###;;;;;;;;;;    ; 
      #############;;'                            #;;;;;;;;;;;;     `, 
      #############                               ;;;;;;;;;;;;;     () 
      #############                               ;;;;;;;;;;;;; 
      #oOOOOOOOOOo#                               ;oOOOOOOOOOo; 
    oOOOOOOOOOOOOOOOo                           oOOOOOOOOOOOOOOOo 
   OOOOOOOOOOOOOOOOOOO                         OOOOOOOOOOOOOOOOOOO 
   OOOOOOO () OOOOOOOO                         OOOOOOOO () OOOOOOO 
   `OOOOOOOooOOOOOOOO'                         `OOOOOOOOooOOOOOOO' 
     `OOOOOOOOOOOOO'                             `OOOOOOOOOOOOO' 
        """""""""                                   """""""""

Copy link
Member

@wolovim wolovim left a comment

Choose a reason for hiding this comment

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

Nice DX tip and thanks for sharing it back into the docs @miohtama!

@wolovim wolovim merged commit 94f1775 into ethereum:master Mar 26, 2021
@liusirsir
Copy link

There are still problems,
this:
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome
eth_hash.backends.pycryptodome

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.

3 participants