MCPcopy
hub / github.com/catppuccin/catppuccin / log

Function log

samples/python1.py:123–138  ·  view source on GitHub ↗

@param *args: string arguments that should be logged to console @param debug=True: debug log mode @param settings=None: instance of sublime.Settings

(*args, **kwargs)

Source from the content-addressed store, hash-verified

121
122
123def log(*args, **kwargs):
124 """
125 @param *args: string arguments that should be logged to console
126 @param debug=True: debug log mode
127 @param settings=None: instance of sublime.Settings
128 """
129 debug = kwargs.get('debug', True)
130 settings = kwargs.get('settings', None)
131
132 if not settings:
133 settings = get_settings()
134
135 if debug and not settings.get('debug', False):
136 return
137
138 print('Modific:', *args)
139
140
141class CommandThread(threading.Thread):

Callers 2

logMethod · 0.85
run_commandMethod · 0.85

Calls 1

get_settingsFunction · 0.85

Tested by

no test coverage detected