Skip to content

Commit

Permalink
Merge pull request #404 from Samweli/logs_tracking_update
Browse files Browse the repository at this point in the history
Update logs tracking to only processing logs
  • Loading branch information
Samweli authored May 10, 2024
2 parents b727b6b + 198a871 commit 1955d71
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cplus_plugin/gui/qgis_cplus_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,11 @@ def on_log_message_received(self, message, tag, level):
:type level: Qgis.MessageLevel
"""
if tag == PLUGIN_MESSAGE_LOG_TAB:
# If there is no current running analysis
# task don't save the log message.
if not self.current_analysis_task:
return

message_time = datetime.datetime.now().strftime("%Y-%m-%dT%H:%M:%S")
message = (
f"{self.log_text_box.toPlainText()} "
Expand Down

0 comments on commit 1955d71

Please sign in to comment.