Skip to content

Commit

Permalink
misc: fix switchconfig bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed Aug 7, 2023
1 parent 8a04203 commit 3ce3042
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion devito/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def set_log_level(level, comm=None):
logger.addHandler(logging.NullHandler())

# Triggers a callback to `_set_log_level`
configuration['log-level'] = level
configuration.update('log-level', level)


def set_log_noperf():
Expand Down
2 changes: 1 addition & 1 deletion devito/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def __enter__(self, condition=True, **params):
self.previous = {}
for k, v in self.params.items():
self.previous[k] = configuration[k]
configuration[k] = v
configuration.update(k, v)

def __exit__(self, exc_type, exc_val, exc_tb):
for k, v in self.params.items():
Expand Down

0 comments on commit 3ce3042

Please sign in to comment.