if (log_method == "file" && log_destination != "")
{
-#if __GNUC__ == 2
- logfile.open(log_destination, _IO_APPEND); // for gcc 2
-#else
- logfile.open(log_destination, std::ios_base::app); // for gcc 3
-#endif
+ logfile.open(log_destination, std::ios_base::app);
if (!logfile)
{
std::cerr << "Can't open logfile " << log_destination << " for writing.\n";
}
verbose = verbose || level > 0;
+ *Log << Now() << " gcm_input starting.\n";
+
if (verbose)
{
*Log << "Hostname = " << hostname;
gcm_input_result = 1;
}
+ *Log << Now() << " gcm_input finished successfully.\n";
}
catch (std::exception &e)
{