mirror of
https://github.com/chubin/cheat.sh.git
synced 2026-06-20 13:16:44 +02:00
Merge pull request #251 from chubin/chubin.log-dir-creation
Create logdir for fetch
This commit is contained in:
@@ -200,6 +200,10 @@ def main(args):
|
||||
_show_usage()
|
||||
sys.exit(0)
|
||||
|
||||
logdir = os.path.dirname(CONFIG["path.log.fetch"])
|
||||
if not os.path.exists(logdir):
|
||||
os.makedirs(logdir)
|
||||
|
||||
logging.basicConfig(
|
||||
filename=CONFIG["path.log.fetch"],
|
||||
level=logging.DEBUG,
|
||||
|
||||
Reference in New Issue
Block a user