Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

to v1.25 #9

Merged
merged 2 commits into from
Jun 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Powerful Python util methods and classes that simplify common apis and tasks.

![Current Release](https://img.shields.io/badge/release-v1.24.0-blue)
![Current Release](https://img.shields.io/badge/release-v1.24.1-blue)
[![codecov](https://codecov.io/gh/owasp-sbot/OSBot-Utils/graph/badge.svg?token=GNVW0COX1N)](https://codecov.io/gh/owasp-sbot/OSBot-Utils)


Expand Down
5 changes: 3 additions & 2 deletions osbot_utils/helpers/trace/Trace_Call.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


def trace_calls(title = None , print_traces = True , show_locals = False, source_code = False ,
ignore = None , include = None , show_path = False, duration_bigger_than = 0 ,
ignore = None , include = None , show_path = False, duration_bigger_than = 0 , trace_depth=0,
max_string = None , show_types = False, show_duration = False ,# show_caller = False , # todo: add back when show_caller is working again
show_class = False, contains = None , show_internals = False, enabled = True ,
extra_data = False, show_lines = False, print_lines = False, show_types_padding = None , duration_padding=None):
Expand All @@ -30,7 +30,8 @@ def wrapper(*args, **kwargs):
capture_extra_data=extra_data,
print_padding_parent_info= show_types_padding, print_padding_duration=duration_padding,
print_lines_on_exit=print_lines, trace_enabled=enabled,
trace_capture_lines=show_lines or print_lines)
trace_capture_lines=show_lines or print_lines,
trace_up_to_depth=trace_depth)

config = (Trace_Call__Config().update_from_kwargs (**config_kwargs))

Expand Down
2 changes: 1 addition & 1 deletion osbot_utils/helpers/trace/Trace_Call__Handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def should_capture(self, frame):
capture = False

for item in self.config.trace_ignore_start_with: # Check if the module should be ignored
if module.startswith(item):
if module.startswith(item) or func_name.startswith(item):
capture = False
break
return capture
Expand Down
3 changes: 2 additions & 1 deletion osbot_utils/utils/Python_Logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ def manager_remove_logger(self):
def setup(self, logger_name=None, log_level=None,add_console_logger=False, add_memory_logger=True):
if logger_name:
self.logger_name = logger_name
self.logger = logging.getLogger(self.logger_name)
if self.logger is None:
self.logger = logging.getLogger(self.logger_name)
self.setup_log_methods()
self.set_log_level(log_level)
if add_console_logger:
Expand Down
2 changes: 1 addition & 1 deletion osbot_utils/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.24.0
v1.24.1
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "osbot_utils"
version = "v1.24.0"
version = "v1.24.1"
description = "OWASP Security Bot - Utils"
authors = ["Dinis Cruz <[email protected]>"]
license = "MIT"
Expand Down
Loading