mirror of
https://github.com/vacp2p/linea-besu.git
synced 2026-01-08 23:17:54 -05:00
Changes to allow evmtool t8n-server to work with execution-spec-tests (#5701)
An omnibus of minor changes needed for t8n-server to work with the EFs new execution-spec-tests framework * Reduce logging output * Fix json library mismatch between t8n and t8n-server * Add hook to enumerate supported forks * temporarily map Shanghai+6780 to Cancun * add to main distro under 'evmtool' name * No longer support the "protected" attribute in TXes Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
This commit is contained in:
@@ -16,6 +16,8 @@ package org.hyperledger.besu.util;
|
||||
|
||||
import java.util.NoSuchElementException;
|
||||
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/** The library independent logger configurator util. */
|
||||
@SuppressWarnings("CatchAndPrintStackTrace")
|
||||
public interface LogConfigurator {
|
||||
@@ -28,6 +30,8 @@ public interface LogConfigurator {
|
||||
*/
|
||||
static void setLevel(final String parentLogger, final String level) {
|
||||
try {
|
||||
// ensure we have at least one log context, to load configs
|
||||
LoggerFactory.getLogger(LogConfigurator.class);
|
||||
Log4j2ConfiguratorUtil.setAllLevels(parentLogger, level);
|
||||
} catch (NoClassDefFoundError | ClassCastException | NoSuchElementException e) {
|
||||
// This is expected when Log4j support is not in the classpath, so ignore
|
||||
|
||||
Reference in New Issue
Block a user