- if (debug_level >= LOG_LVL_DEBUG && server_use_pipes == 1)
- {
- /* if we are enabling debug info then we need to write to a
- * log file otherwise the pipe will get full and cause issues
- * with gdb
- */
- FILE* file = fopen("openocd.log", "w");
- if (file)
- {
- log_output = file;
- LOG_WARNING("enabling logfile output because "
- "we are using pipes to talk to GDB.");
- }
- }
-