Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7df01bc

Browse files
committed
Remove logs.
1 parent 3e8f9b5 commit 7df01bc

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/backend/vprofiler/trace_tool.cc

-5
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ class TraceTool
3434
and also transaction latency (the last one). */
3535
vector<ulint> transaction_start_times; /*!< Stores the start time of transactions. */
3636

37-
ofstream log_file;
38-
3937
TraceTool();
4038
TraceTool(TraceTool const&){};
4139
public:
@@ -223,8 +221,6 @@ TraceTool::TraceTool() : function_times()
223221
transaction_start_times.push_back(0);
224222

225223
srand(time(0));
226-
227-
log_file.open("logs/trace.log");
228224
}
229225

230226
bool TraceTool::should_monitor()
@@ -241,7 +237,6 @@ void *TraceTool::check_write_log(void *arg)
241237
{
242238
sleep(5);
243239
timespec now = get_time();
244-
instance->log_file << "Checking" << endl;
245240
if (now.tv_sec - global_last_query.tv_sec >= 5 && transaction_id > 0)
246241
{
247242
/* Create a back up of the debug log file in case it's overwritten. */

0 commit comments

Comments
 (0)