Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: cms/bin/generate_static_pages.py

Issue 5076874740891648: Issue 2456 - [cms] Use logging module (Closed)
Patch Set: Created May 5, 2015, 1:30 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cms/bin/test_server.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cms/bin/generate_static_pages.py
===================================================================
--- a/cms/bin/generate_static_pages.py
+++ b/cms/bin/generate_static_pages.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
-import sys, os, re, errno, codecs
+import sys, os, re, errno, codecs, logging
from ..utils import process_page
from ..sources import MercurialSource
@@ -35,7 +35,7 @@
encoding = None if binary else "utf-8"
outfile = os.path.join(output_dir, *path_parts)
if outfile in known_files:
- print >>sys.stderr, "Warning: File %s has multiple sources" % outfile
+ logging.warning("File %s has multiple sources", outfile)
return
known_files.add(outfile)
« no previous file with comments | « no previous file | cms/bin/test_server.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld