Project

General

Profile

Feature #22956

Welcome message and output compilation date and time to trace and the message facility

Added by Iker de Icaza Astiz 5 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Category:
Additional Functionality
Target version:
-
Start date:
07/17/2019
Due date:
% Done:

0%

Estimated time:
Experiment:
-
Co-Assignees:
Duration:

Description

Print out to the message facility and elsewhere a statement of the version of the product.

For developing and debugging is useful to have a message displaying at what time the code was last compiled.

Something along the lines:

const char* const COMPILED = DATE " @ " TIME;
TLOG(TLVL_INFO) << " ------------------------- "
<< "\n Compiled: " << COMPILED << "\n"
<< " ------------------------- "<< TLOG_ENDL;
buildinfo_ss.png (192 KB) buildinfo_ss.png Eric Flumerfelt, 11/05/2019 01:30 PM

Associated revisions

Revision 820b8041 (diff)
Added by Eric Flumerfelt about 1 month ago

Add TLOG to BuildInfo_module to explicitly state the package build info
as it is being stored in the output data file. Issue #22956

History

#1 Updated by Eric Flumerfelt about 1 month ago

  • Assignee set to Eric Flumerfelt
  • Status changed from New to Rejected

This message is already part of artdaq, see https://cdcvs.fnal.gov/redmine/projects/artdaq/repository/revisions/develop/entry/proto/artdaqapp.hh#L85.

However, in DAQInterface's usual order of initialization, the MessageViewer is not yet present and running when this message is sent. It is, however, logged to the TRACE buffer and process log files.

#2 Updated by Iker de Icaza Astiz about 1 month ago

Thanks for pointing that out I'll look into using that feature ourselves.

However I still feel this a rather standard message and useful way of being sure that you are running code that you just compiled. What about repeating this message or moving it such that it also appear at the Message Facility?

#3 Updated by Eric Flumerfelt about 1 month ago

  • Status changed from Rejected to Resolved

On artdaq:feature/22956_BuildInfo_TRACEBuildInfo, I have added output of the package versions and build timestamps to BuildInfo_module. These are debug messages, but will appear in the Message Viewer with appropriate filtering.

#4 Updated by Eric Flumerfelt about 1 month ago

Image of new messages in Message Viewer:

#5 Updated by Iker de Icaza Astiz about 1 month ago

Fair enough. Thanks Eric.



Also available in: Atom PDF