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

always log full version also #3229

Merged
merged 4 commits into from
Sep 19, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 17 additions & 10 deletions src/radical/pilot/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,16 +428,28 @@ def _init_cfg_from_scratch(self):
level=self._cfg.get('log_lvl'),
debug=self._cfg.get('debug_lvl'))

from . import version_detail as rp_version_detail
self._log.info('radical.pilot version: %s', rp_version_detail)
self._log.info('radical.utils version: %s', ru.version_detail)
self._log_version()

self._prof.prof('session_start', uid=self._uid)

self._rep.info ('<<new session: ')
self._rep.plain('[%s]' % self._uid)


# --------------------------------------------------------------------------
#
def _log_version(self):

from . import version as rp_version
from . import version_detail as rp_version_detail

self._log.info('Session(%s, %s)', self._uid, self._role)
self._log.info('radical.pilot version: %s (%s)', rp_version,
rp_version_detail)
self._log.info('radical.utils version: %s (%s)', ru.version,
ru.version_detail)


# --------------------------------------------------------------------------
#
def _init_cfg_from_dict(self):
Expand Down Expand Up @@ -480,9 +492,7 @@ def _init_cfg_from_dict(self):
level=self._cfg.get('log_lvl'),
debug=self._cfg.get('debug_lvl'))

from . import version_detail as rp_version_detail
self._log.info('radical.pilot version: %s', rp_version_detail)
self._log.info('radical.utils version: %s', ru.version_detail)
self._log_version()

self._prof.prof('session_start', uid=self._uid)

Expand All @@ -509,11 +519,8 @@ def _init_cfg_from_registry(self):
level=self._cfg.get('log_lvl'),
debug=self._cfg.get('debug_lvl'))

from . import version_detail as rp_version_detail
self._log.info('radical.pilot version: %s', rp_version_detail)
self._log.info('radical.utils version: %s', ru.version_detail)
self._log_setup()
mtitov marked this conversation as resolved.
Show resolved Hide resolved

self._log.debug('Session(%s, %s)', self._uid, self._role)
self._prof.prof('session_start', uid=self._uid)


Expand Down
Loading