CmdStart: Removed log

This commit is contained in:
Paul Beckingham 2016-04-06 20:25:11 -04:00
parent 035d1c764c
commit 45cbe7d817
3 changed files with 3 additions and 5 deletions

View file

@ -34,8 +34,7 @@
int CmdStart (
CLI& cli,
Rules& rules,
Database& database,
Log& log)
Database& database)
{
// Load the most recent interval.
auto latest = database.getLatestInterval ();
@ -49,7 +48,6 @@ int CmdStart (
// Update database.
database.modifyInterval (latest);
log.write ("debug", std::string ("Stopped tracking: ") + latest.serialize ());
// User feedback.
if (rules.getBoolean ("verbose"))
@ -67,7 +65,6 @@ int CmdStart (
// Update database.
database.addInterval (now);
log.write ("debug", std::string ("Started tracking: ") + now.serialize ());
// User feedback.
if (rules.getBoolean ("verbose"))

View file

@ -33,7 +33,6 @@
#include <Extensions.h>
#include <Log.h>
int CmdStart (CLI&, Rules&, Database&, Log&);
int CmdStop (CLI&, Rules&, Database&, Log&);
int CmdTags ( Rules&, Database&, Log&);
int CmdTrack (CLI&, Rules&, Database&, Log&);
@ -51,5 +50,6 @@ int CmdHelpUsage ( );
int CmdHelp (CLI& );
int CmdImport ( );
int CmdReport (CLI&, Rules&, Database&, Extensions&);
int CmdStart (CLI&, Rules&, Database& );
#endif

View file

@ -217,6 +217,7 @@ int dispatchCommand (
else if (command == "help") status = CmdHelp (cli );
else if (command == "import") status = CmdImport ( );
else if (command == "report") status = CmdReport (cli, rules, database, extensions);
else if (command == "start") status = CmdStart (cli, rules, database );
}
else
{