Skip to content

Commit

Permalink
Disable too many locals
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmud committed Dec 15, 2020
1 parent c108b99 commit 5ca1d1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/utils/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def log( # pylint: disable=too-many-arguments
pass

@contextmanager
def log_context(
def log_context( # pylint: disable=too-many-locals
self, action: str, object_ref: Optional[str] = None, log_to_statsd: bool = True,
) -> Iterator[Callable[..., None]]:
"""
Expand Down Expand Up @@ -233,7 +233,7 @@ def get_event_logger_from_cfg_value(cfg_value: Any) -> AbstractEventLogger:
class DBEventLogger(AbstractEventLogger):
"""Event logger that commits logs to Superset DB"""

def log( # pylint: disable=too-many-arguments
def log( # pylint: disable=too-many-arguments,too-many-locals
self,
user_id: Optional[int],
action: str,
Expand Down

0 comments on commit 5ca1d1f

Please sign in to comment.