- Remove debugging code.
This commit is contained in:
@@ -679,13 +679,10 @@ void updateRecurrenceMask (
|
|||||||
// Using gTdb and gConf, generate a report.
|
// Using gTdb and gConf, generate a report.
|
||||||
void onChangeCallback ()
|
void onChangeCallback ()
|
||||||
{
|
{
|
||||||
std::cout << "--- callback" << std::endl;
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (gConf && gTdb)
|
if (gConf && gTdb)
|
||||||
{
|
{
|
||||||
std::cout << "--- valid globals" << std::endl;
|
|
||||||
|
|
||||||
// Determine if shadow file is enabled.
|
// Determine if shadow file is enabled.
|
||||||
std::string shadowFile = expandPath (gConf->get ("shadow.file"));
|
std::string shadowFile = expandPath (gConf->get ("shadow.file"));
|
||||||
if (shadowFile != "")
|
if (shadowFile != "")
|
||||||
@@ -695,8 +692,6 @@ void onChangeCallback ()
|
|||||||
gConf->set ("curses", "off");
|
gConf->set ("curses", "off");
|
||||||
gConf->set ("color", "off");
|
gConf->set ("color", "off");
|
||||||
|
|
||||||
std::cout << "--- shadowFile " << shadowFile<< std::endl;
|
|
||||||
|
|
||||||
// Run report. Use shadow.command, using default.command as a fallback
|
// Run report. Use shadow.command, using default.command as a fallback
|
||||||
// with "list" as a default.
|
// with "list" as a default.
|
||||||
std::string command = gConf->get ("shadow.command",
|
std::string command = gConf->get ("shadow.command",
|
||||||
@@ -714,8 +709,6 @@ void onChangeCallback ()
|
|||||||
else
|
else
|
||||||
throw std::string ("Could not write file '") + shadowFile + "'";
|
throw std::string ("Could not write file '") + shadowFile + "'";
|
||||||
|
|
||||||
std::cout << "--- Complete " << std::endl;
|
|
||||||
|
|
||||||
gConf->set ("curses", oldCurses);
|
gConf->set ("curses", oldCurses);
|
||||||
gConf->set ("color", oldColor);
|
gConf->set ("color", oldColor);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user