Commit 56ea31104ecf2ceef3ce4f3bb12858ae59afce44
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 | 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 | 7 | * This program is free software: you can redistribute it and/or modify * |
| ... | ... | @@ -223,8 +223,11 @@ void ctpsfcube::run(void) |
| 223 | 223 | // Write header into logger |
| 224 | 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 | 229 | // Fill PSF cube |
| 227 | - m_psfcube.fill(m_obs, &log); | |
| 230 | + m_psfcube.fill(m_obs, logger); | |
| 228 | 231 | |
| 229 | 232 | // Write PSF cube into logger |
| 230 | 233 | log_string(EXPLICIT, m_psfcube.print(m_chatter)); | ... | ... |