-
Notifications
You must be signed in to change notification settings - Fork 188
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
add broadcast to log message #333
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -318,7 +318,7 @@ def risk_free_rate(self): | |
|
||
# =======Helper methods======================= | ||
|
||
def log_message(self, message, color=None): | ||
def log_message(self, message, color=None, broadcast=False): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
"""Logs an info message prefixed with the strategy name. | ||
|
||
Uses python logging to log the message at the `info` level. | ||
|
@@ -332,6 +332,9 @@ def log_message(self, message, color=None): | |
color : str | ||
Color of the message. Eg. `"red"` or `"green"`. | ||
|
||
broadcast : bool | ||
If True, the message will be broadcasted to any connected message services. | ||
|
||
Returns | ||
------- | ||
message : str | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
setuptools.setup( | ||
name="lumibot", | ||
version="2.9.7", | ||
version="2.9.8", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The version number has been updated in the setup.py file, but there is no information in the pull request description about what changes have been made that warrant this version update. It's important to provide this information so that other developers can understand what changes have been made and why the version number has been updated. |
||
author="Robert Grzesik", | ||
author_email="[email protected]", | ||
description="Backtesting and Trading Library, Made by Lumiwealth", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new 'broadcast' parameter in the 'log_message' function is not used anywhere in the function. This could lead to confusion for other developers who might expect this parameter to affect the function's behavior. If the parameter is not needed, consider removing it to avoid confusion. If it is needed, make sure to implement its functionality within the function.