Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • P pypushflow
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Service Desk
    • Milestones
  • Jira
    • Jira
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • 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
  • workflow
  • pypushflow
  • Merge requests
  • !21

improve logging by adding log context (workflow name, actor name)

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Wout De Nolf requested to merge logging_format into main Dec 09, 2021
  • Overview 0
  • Commits 1
  • Pipelines 3
  • Changes 17

I was trying to debug pypushflow but the logging was very confusing. I tried to clean it up by adding log context.

This is the logging of the triggering and execution of one python actor:

DEBUG    pypushflow:ThreadCounter.py:49 [submodel] Thread started for 'in' (2 threads running)
INFO     pypushflow:PythonActor.py:114 [submodel] [<EwoksPythonActor> in] triggered with inData =
 {'_noinput': {'node_attrs': {'task_identifier': 'ewoksppf.tests.test_ppf_workflow21.passthrough',
                             'task_type': 'method'},
              'node_id': 'in',
              'varinfo': {'root_uri': '/tmp/pytest-of-denolf/pytest-87/test_workflow21_True_True_args0'}},
 'a': 20}
INFO     pypushflow:AbstractActor.py:78 [submodel] [<EwoksPythonActor> in] started
DEBUG    pypushflow:PythonActor.py:81 [submodel] [<EwoksPythonActor> in] asynchronous execution of 'ewoksppf.ppfrunscript.run' 
DEBUG    pypushflow:ThreadCounter.py:49 [submodel] Thread ended for 'Start' (1 threads running)
DEBUG    pypushflow:StopActor.py:49 [submodel] [<StopActor> Stop] wait for scheduler threads to be finished
INFO     pypushflow:AbstractActor.py:85 [submodel] [<EwoksPythonActor> in] finished
Edited Dec 09, 2021 by Wout De Nolf
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: logging_format