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

[CALR-81] Vessel Details module - add explicit logs on main code runs #81

Closed
eblondel opened this issue Feb 19, 2024 · 0 comments
Closed

Comments

@eblondel
Copy link
Member

Issue migrated from JIRA: https://sdlc.review.fao.org/jira/browse/CALR-81
Creator/Reporter: Emmanuel Blondel @eblondel
Assignee: Brian Ojok @brianandy
Priority: Medium
Status: Done
Date of creation: 2022-04-11T11:36:18.000+0000

In master, some utils logging functions have been added. These functions, namely INFO, WARN and ERROR should be added to better track what's happening. The 3 functions inherit from a generic 'logger' function available for knowledge at 'assets/core/utils.R'

These functions inherit also from the 'sprintf' function, that can be used to simplify logs statements without having to call sprintf or paste functions..

 
{code:java}
INFO("This is some info about vessel '%s'", "<vessel_id>"){code}
This results in the following cat print:
{noformat}
[shiny-calipseo][INFO] This is some info about vessel '<vessel_id>'{noformat}
 

This task is to enrich the Vessel details (vessel_info_server.R) R code with some meaningful logs to track the R code running.

 

cc [~alexandre.bennici@fao.org] for information about loggers that will have to be applied in artfish and logbook modules as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant