dbcli / mycli

A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.
http://mycli.net
Other
11.32k stars 656 forks source link

Query logged twice when logfile are specified #1136

Open Bryan2333 opened 8 months ago

Bryan2333 commented 8 months ago

I recently attempted to move my files to an xdg-based directory. I was able to specify the location for myclirc and mycli.log, but I encountered an issue where the .mycli-history files were still being created in home directory even after I passed the argument --logfile ~/.local/share/mycli-history.

Is this a bug?

I have also recorded the situation on my screen for reference.

https://github.com/dbcli/mycli/assets/31512600/aad1f535-d80b-471c-92aa-71a6a5079979