Skip to content

Commit

Permalink
enable solcx logger - closes #188
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdefinitelyahuman committed Sep 15, 2019
1 parent e4e8ef9 commit b217a27
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions brownie/project/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from copy import deepcopy
from collections import deque
from hashlib import sha1
import logging
import re
from requests.exceptions import ConnectionError
import solcast
Expand All @@ -15,6 +16,13 @@
from . import sources
from brownie.exceptions import CompilerError, IncompatibleSolcVersion, PragmaError

solcx_logger = logging.getLogger("solcx")
solcx_logger.setLevel(10)
sh = logging.StreamHandler()
sh.setLevel(10)
sh.setFormatter(logging.Formatter("%(message)s"))
solcx_logger.addHandler(sh)

STANDARD_JSON = {
"language": "Solidity",
"sources": {},
Expand Down

0 comments on commit b217a27

Please sign in to comment.