From 840693964cebef2fe1addabea498cd41ebff298e Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Wed, 19 Dec 2012 06:16:45 +0100 Subject: [PATCH] For explicit chatter level, read back temporary file and dump it to log file. --- src/ctselect/ctselect.cpp | 9 +++++++++ 1 file changed, 9 insertions(+), 0 deletions(-) diff --git a/src/ctselect/ctselect.cpp b/src/ctselect/ctselect.cpp index d4d1a0c..c941549 100644 --- a/src/ctselect/ctselect.cpp +++ b/src/ctselect/ctselect.cpp @@ -296,6 +296,15 @@ void ctselect::run(void) // Save observation in temporary file obs->save(filename, true); + // Log saved FITS file + if (logExplicit()) { + GFits tmpfile(filename); + log << std::endl; + log.header1("FITS file content of temporary file"); + log << tmpfile << std::endl; + tmpfile.close(); + } + // Check temporary file std::string message = check_infile(filename); if (message.length() > 0) { -- libgit2 0.21.4