mirror of
https://github.com/Watchful1/PushshiftDumps.git
synced 2025-07-04 19:36:44 -04:00
Fix debug logging
This commit is contained in:
parent
c953c1e18a
commit
5405b8dc0d
1 changed files with 5 additions and 1 deletions
|
@ -15,7 +15,7 @@ import logging.handlers
|
|||
|
||||
sys.path.append('personal')
|
||||
|
||||
log = discord_logging.init_logging(debug=True)
|
||||
log = discord_logging.init_logging(debug=False)
|
||||
|
||||
import utils
|
||||
import classes
|
||||
|
@ -192,8 +192,12 @@ if __name__ == "__main__":
|
|||
parser.add_argument('--input', help='Input folder', required=True)
|
||||
parser.add_argument('--output', help='Output folder', required=True)
|
||||
parser.add_argument('--pushshift', help='The pushshift token')
|
||||
parser.add_argument("--debug", help="Enable debug logging", action='store_const', const=True, default=False)
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.debug:
|
||||
discord_logging.set_level(logging.DEBUG)
|
||||
|
||||
input_folders = [
|
||||
(os.path.join(args.input, "ingest"), IngestType.INGEST),
|
||||
(os.path.join(args.input, "rescan"), IngestType.RESCAN),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue