Commit 56ea31104ecf2ceef3ce4f3bb12858ae59afce44

Authored by Jürgen Knödlseder
2 parents 1ea3e00c 423acc11

Merge branch '2262-ctpsfcube_silent_chatter' into integration

Showing 1 changed file with 5 additions and 2 deletions
src/ctpsfcube/ctpsfcube.cpp
1 /*************************************************************************** 1 /***************************************************************************
2 * ctpsfcube - PSF cube generation tool * 2 * ctpsfcube - PSF cube generation tool *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2014-2016 by Chia-Chun Lu * 4 + * copyright (C) 2014-2017 by Chia-Chun Lu *
5 * ----------------------------------------------------------------------- * 5 * ----------------------------------------------------------------------- *
6 * * 6 * *
7 * This program is free software: you can redistribute it and/or modify * 7 * This program is free software: you can redistribute it and/or modify *
@@ -223,8 +223,11 @@ void ctpsfcube::run(void) @@ -223,8 +223,11 @@ void ctpsfcube::run(void)
223 // Write header into logger 223 // Write header into logger
224 log_header1(TERSE, "Generate PSF cube"); 224 log_header1(TERSE, "Generate PSF cube");
225 225
  226 + // Set pointer to logger dependent on chattiness
  227 + GLog* logger = (logNormal()) ? &log : NULL;
  228 +
226 // Fill PSF cube 229 // Fill PSF cube
227 - m_psfcube.fill(m_obs, &log); 230 + m_psfcube.fill(m_obs, logger);
228 231
229 // Write PSF cube into logger 232 // Write PSF cube into logger
230 log_string(EXPLICIT, m_psfcube.print(m_chatter)); 233 log_string(EXPLICIT, m_psfcube.print(m_chatter));