Change `printD` to print to a 'Debug' stream

STDERR is just a better place for this output.  Mind you, it doesn't
actually change anything about how it runs.  Still behaves the way
it has (in the terminal), just allows us to write scripts (hint hint)
and pipe the output.
pull/135/head
midcoastal 2023-05-03 11:46:38 -04:00
parent e819dbe137
commit 1fc3bda7e4
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# -*- coding: UTF-8 -*-
import os
import sys
import io
import hashlib
import requests
@ -16,7 +17,7 @@ proxies = None
# print for debugging
def printD(msg):
print(f"Civitai Helper: {msg}")
print(f"Civitai Helper: {msg}", file=sys.stderr)
def read_chunks(file, size=io.DEFAULT_BUFFER_SIZE):