Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • SUNSET SUNSET
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 43
    • Issues 43
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Earth SciencesEarth Sciences
  • SUNSETSUNSET
  • Merge requests
  • !2

Prints are saved in log

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Nuria Pérez-Zanón requested to merge develop-firstversion into master Aug 25, 2021
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 4

Hi @lpalma,

I realized that the prints (for instance prints from Start()) were not saved into the log files.

It has been tricky to find a way to do it. Finally, capture.output() did it however now they are not printed in the terminal :C

This is what I get in the terminal (because of the use of log4r and capture.output() together) :

INFO  [2021-08-25 17:36:18]  #*****************************************#
 # Starting Independent verification of ECV 
tas monthly_mean
INFO  [2021-08-25 17:36:58] ######### DATA LOADING COMPLETED SUCCESFULLY ##############
INFO  [2021-08-25 17:37:38] ######### DATA LOADING COMPLETED SUCCESFULLY ##############
There were 18 warnings (use warnings() to see them)

while the log includes more info:

INFO  [2021-08-25 17:36:18]  #*****************************************#
# Starting Independent verification of ECV
tas monthly_mean
* Exploring files... This will take a variable amount of time depending
*   on the issued request and the performance of the file server...
* Detected dimension sizes:
*         dat:   1
*         var:   1
*       sweek:   1
*        sday:   1
*       syear:   1
*        time:   3
*    latitude: 181
*   longitude: 360
....
* Successfully retrieved data.
INFO  [2021-08-25 17:37:38] ######### DATA LOADING COMPLETED SUCCESFULLY ##############

I hope this helps, we can have a chat in case you have questions.

Cheers,

Núria

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: develop-firstversion