Skip to content

Commit

Permalink
REV: not needed logging related changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLP authored and laborleben committed Apr 17, 2018
1 parent 547b4ec commit e2e2efc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion basil/HL/RegisterHardwareLayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def init(self):
version = str(self.VERSION)
else:
version = None
logger.debug("Initializing %s (firmware version: %s), module %s, base_addr %s" % (self.name, version if 'VERSION' in self._registers else 'n/a', self.__class__.__module__, hex(self._base_addr)))
logger.info("Initializing %s (firmware version: %s), module %s, base_addr %s" % (self.name, version if 'VERSION' in self._registers else 'n/a', self.__class__.__module__, hex(self._base_addr)))
if self._require_version and not eval(version + self._require_version):
raise Exception("FPGA module %s does not satisfy version requirements (read: %s, require: %s)" % (self.__class__.__module__, version, self._require_version.strip()))
for reg, value in self._registers.iteritems():
Expand Down
4 changes: 1 addition & 3 deletions basil/utils/sim/Test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
from Protocol import WriteRequest, ReadRequest, ReadResponse, PickleInterface
from cocotb.binary import BinaryValue

logger = logging.getLogger(__name__)


def get_bus():
bus_name_path = os.getenv("SIMULATION_BUS", "basil.utils.sim.BasilBusDriver")
Expand All @@ -39,7 +37,7 @@ def socket_test(dut, debug=False):
port = os.getenv("SIMULATION_PORT", '12345')

if debug:
logger.setLevel(logging.DEBUG)
dut._log.setLevel(logging.DEBUG)

bus = get_bus()(dut)

Expand Down

0 comments on commit e2e2efc

Please sign in to comment.