Allow custom datadir for loggers. #402
Labels
enhancement
This enhances the code and improves stuffs
good first issue
issues suitable for early contributors
Milestone
coinswap/src/utill.rs
Lines 149 to 154 in b309205
Currently all our loggers are always putting the deblug.log file in the default data directory. This means even if the user is passing custom datadir, the log file will be in the default directory.
Make all the
setup_logger
function to take in aOption<Path>
as datadir, and if None then defaults to the default datadir.The text was updated successfully, but these errors were encountered: