Skip to content

Commit

Permalink
Properly redirect to devnull
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMazzone committed Jul 13, 2023
1 parent dbc25fc commit b7d5b49
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions htmlcssgrade.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
#######################
# HTML/CSS Grade
# Version 1.1.0
# Version 1.1.1
# Created by Joe Mazzone
# Documentation: https://github.com/MrMazzone/HTML-CSS-Grade
#######################

from bs4 import BeautifulSoup
import cssutils
import logging
import os

class HTML_Check:
"""
Expand Down Expand Up @@ -186,7 +187,7 @@ class CSS_Check:
get_num_declarations() - Returns the number of declarations in CSS file.
"""
def __init__(self, filepath, text=False):
logging.basicConfig(stream="warnings",
logging.basicConfig(filename=os.devnull,
format='%(asctime)s %(message)s',)
newlog = logging.getLogger()
cssutils.log.setLog(newlog)
Expand Down

0 comments on commit b7d5b49

Please sign in to comment.