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

Adjust logging output #1385

Merged
merged 2 commits into from
Jul 12, 2024
Merged

Adjust logging output #1385

merged 2 commits into from
Jul 12, 2024

Conversation

jmthomas
Copy link
Member

@jmthomas jmthomas commented Jul 7, 2024

No description provided.

Copy link

codecov bot commented Jul 7, 2024

Codecov Report

Attention: Patch coverage is 15.78947% with 16 lines in your changes missing coverage. Please review.

Project coverage is 75.36%. Comparing base (0ab3dc8) to head (400f1b5).
Report is 15 commits behind head on main.

Files Patch % Lines
openc3/lib/openc3/operators/operator.rb 11.11% 8 Missing ⚠️
openc3/lib/openc3/microservices/microservice.rb 22.22% 7 Missing ⚠️
...enc3/lib/openc3/operators/microservice_operator.rb 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1385      +/-   ##
==========================================
- Coverage   75.40%   75.36%   -0.04%     
==========================================
  Files         600      600              
  Lines       44687    44689       +2     
  Branches      777      777              
==========================================
- Hits        33694    33682      -12     
- Misses      10906    10920      +14     
  Partials       87       87              
Flag Coverage Δ
frontend 55.43% <ø> (-0.13%) ⬇️
python 83.88% <ø> (-0.06%) ⬇️
ruby-api 48.60% <ø> (+0.04%) ⬆️
ruby-backend 80.20% <15.78%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -29,7 +29,7 @@
show-size
accept=".gem"
class="mx-2"
label="Click to select plugin .gem file to install"
label="Click to install new plugin .gem (NOT upgrade)"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted this to be clearer that this is for installing new plugins. I think we're still getting people clicking here for upgrade which leads to the "already exists" error.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The real fix for this is a new "Are you sure" prompt that lets the user know that the plugin they are trying to install has already been installed at least once. This info could be returned in the results from install_phase1

end
end

def shutdown
@shutdown = true
@mutex.synchronize do
Logger.info("Shutting down processes...")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Restore to info

shutdown_processes(@processes)
Logger.info("Shutting down processes complete")
Logger.debug("Shutting down processes complete")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Restore to info

@@ -174,7 +174,7 @@ def hard_stop
if @process and !@process.exited?
# Redis may be down at this point so just catch any Logger errors
begin
Logger.info("Hard shutting down process: #{cmd_line()}", scope: @scope)
Logger.debug("Hard shutting down process: #{cmd_line()}", scope: @scope)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Restore to info

@@ -161,7 +161,7 @@ def exit_code

def soft_stop
Thread.new do
Logger.info("Soft shutting down process: #{cmd_line()}", scope: @scope)
Logger.debug("Soft shutting down process: #{cmd_line()}", scope: @scope)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Restore to info

@@ -29,7 +29,7 @@
show-size
accept=".gem"
class="mx-2"
label="Click to select plugin .gem file to install"
label="Click to install new plugin .gem (NOT upgrade)"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The real fix for this is a new "Are you sure" prompt that lets the user know that the plugin they are trying to install has already been installed at least once. This info could be returned in the results from install_phase1

@OpenC3 OpenC3 deleted a comment from ryanmelt Jul 9, 2024
@OpenC3 OpenC3 deleted a comment from ryanmelt Jul 9, 2024
Copy link

@github-advanced-security
Copy link
Contributor

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@jmthomas
Copy link
Member Author

Added #1398 to address issue about installing with "Are you sure" prompt.

@jmthomas jmthomas merged commit 125857e into main Jul 12, 2024
26 checks passed
@jmthomas jmthomas deleted the log_output branch July 12, 2024 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants