Bug #3631
Debug mode does not display header
Status: | Closed | Start date: | 04/29/2021 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assigned To: | Knödlseder Jürgen | % Done: | 100% | |
Category: | - | |||
Target version: | 2.0.0 | |||
Duration: |
Description
When running a tool in debug mode the header is not written into the console. In principle the debug mode should provide similar output as the log file.
Recurrence
No recurrence.
History
#1 Updated by Knödlseder Jürgen over 2 years ago
- Project changed from ctools to GammaLib
- Status changed from New to Pull request
- Assigned To set to Knödlseder Jürgen
- Target version changed from 2.0.0 to 2.0.0
- % Done changed from 0 to 90
This is actually a GammaLib issue, since debug mode was not switched on at the GApplication
level before writing the header.
I added the debugging functionality to GApplication::logFileOpen
:
// Open logger only if filename is non-empty
if (!log_filename().empty()) {
// Initialise the application logger
log.open(log_filename(), clobber);
// If we're in debug mode then all output is also dumped on the
// screen
if (logDebug()) {
log.cout(true);
}
// Write header into log file
log_header();
} // endif: file name was not empty
#2 Updated by Knödlseder Jürgen over 2 years ago
- Status changed from Pull request to Closed
- % Done changed from 90 to 100
Merged into devel
.