mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Timew: Removed log file
This commit is contained in:
parent
7041a4d9a6
commit
34079ff28e
2 changed files with 0 additions and 13 deletions
|
@ -29,7 +29,6 @@
|
|||
#include <Database.h>
|
||||
#include <Rules.h>
|
||||
#include <Extensions.h>
|
||||
#include <Log.h>
|
||||
#include <shared.h>
|
||||
#include <format.h>
|
||||
#include <FS.h>
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <cmake.h>
|
||||
#include <Log.h>
|
||||
#include <CLI.h>
|
||||
#include <Database.h>
|
||||
#include <Rules.h>
|
||||
|
@ -44,13 +43,6 @@ int main (int argc, const char** argv)
|
|||
if (lightweightVersionCheck (argc, argv))
|
||||
return status;
|
||||
|
||||
// The log is needed early, in order to capture as much as possible, but will
|
||||
// only be given a file name once the rules are loaded. The log therefore
|
||||
// buffers the messages until it has a file name to write to.
|
||||
Log log;
|
||||
// TODO Need a simpler way to call this.
|
||||
// CmdLog ({"timew", "log", "mark"}, log);
|
||||
|
||||
// Add entities so that command line tokens such as 'help' are recognized as
|
||||
// commands.
|
||||
CLI cli;
|
||||
|
@ -67,7 +59,6 @@ int main (int argc, const char** argv)
|
|||
|
||||
commandLine += quoteIfNeeded (argv[i]);
|
||||
}
|
||||
log.write ("command", commandLine);
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -93,7 +84,6 @@ int main (int argc, const char** argv)
|
|||
catch (const std::string& error)
|
||||
{
|
||||
std::cerr << error << "\n";
|
||||
log.write ("error", error);
|
||||
status = -1;
|
||||
}
|
||||
|
||||
|
@ -101,7 +91,6 @@ int main (int argc, const char** argv)
|
|||
{
|
||||
auto message = std::string ("Memory allocation failed: ") + error.what ();
|
||||
std::cerr << "Error: " << message << "\n";
|
||||
log.write ("error", message);
|
||||
status = -3;
|
||||
}
|
||||
|
||||
|
@ -109,7 +98,6 @@ int main (int argc, const char** argv)
|
|||
{
|
||||
auto message = "Unknown problem, please report.";
|
||||
std::cerr << "Error: " << message << "\n";
|
||||
log.write ("error", message);
|
||||
status = -2;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue