diff --git a/src/ctpsfcube/ctpsfcube.cpp b/src/ctpsfcube/ctpsfcube.cpp index 5d69b4b..d94f49a 100644 --- a/src/ctpsfcube/ctpsfcube.cpp +++ b/src/ctpsfcube/ctpsfcube.cpp @@ -223,8 +223,11 @@ void ctpsfcube::run(void) // Write header into logger log_header1(TERSE, "Generate PSF cube"); + // Set pointer to logger dependent on chattiness + GLog* logger = (logNormal()) ? &log : NULL; + // Fill PSF cube - m_psfcube.fill(m_obs, &log); + m_psfcube.fill(m_obs, logger); // Write PSF cube into logger log_string(EXPLICIT, m_psfcube.print(m_chatter));