Skip to content

Commit

Permalink
Fix overly verbose logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
gfs authored Jun 3, 2019
1 parent 2d25166 commit cfcf2e8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Lib/Utils/DatabaseManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,8 @@ public static class DatabaseManager

public static bool Setup()
{
Log.Warning("Before Conn Check");
if (Connection == null)
{
Log.Warning("After Conn Check");

Connection = new SqliteConnection($"Filename=" + _SqliteFilename);
Connection.Open();

Expand Down Expand Up @@ -200,11 +197,9 @@ public static bool Setup()
cmd.ExecuteNonQuery();
}

Console.WriteLine("Set up database.");
Commit();
return true;
}
Log.Warning("Failed to set up database");
return false;
}

Expand Down Expand Up @@ -472,4 +467,4 @@ public static void DeleteRun(string runid)
DatabaseManager.Commit();
}
}
}
}

0 comments on commit cfcf2e8

Please sign in to comment.