Skip to content

Commit

Permalink
only log events in cache.py when flag is set set (#4369)
Browse files Browse the repository at this point in the history
flag is --log-cache-events

automatic commit by git-black, original commits:
  d75ed96
  • Loading branch information
emmyoop authored and iknox-fa committed Feb 8, 2022
1 parent 3970e90 commit d4d0897
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/dbt/events/base_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #


class Cache():
class Cache:
# Events with this class will only be logged when the `--log-cache-events` flag is passed
pass

Expand Down
4 changes: 2 additions & 2 deletions core/dbt/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"FAIL_FAST": False,
"SEND_ANONYMOUS_USAGE_STATS": True,
"PRINTER_WIDTH": 80,
"INDIRECT_SELECTION": 'eager',
"INDIRECT_SELECTION": "eager",
"LOG_CACHE_EVENTS": False,
"EVENT_BUFFER_SIZE": 100000
}
Expand Down Expand Up @@ -124,7 +124,7 @@ def set_from_args(args, user_config):
SEND_ANONYMOUS_USAGE_STATS = get_flag_value("SEND_ANONYMOUS_USAGE_STATS", args, user_config)
PRINTER_WIDTH = get_flag_value("PRINTER_WIDTH", args, user_config)
INDIRECT_SELECTION = get_flag_value('INDIRECT_SELECTION', args, user_config)
LOG_CACHE_EVENTS = get_flag_value('LOG_CACHE_EVENTS', args, user_config)
LOG_CACHE_EVENTS = get_flag_value("LOG_CACHE_EVENTS", args, user_config)
EVENT_BUFFER_SIZE = get_flag_value('EVENT_BUFFER_SIZE', args, user_config)


Expand Down

0 comments on commit d4d0897

Please sign in to comment.