~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: aaron.bentley at utoronto
  • Date: 2005-08-19 12:06:01 UTC
  • mto: (1092.1.41) (1185.3.4) (974.1.47)
  • mto: This revision was merged to the branch mainline in revision 1110.
  • Revision ID: aaron.bentley@utoronto.ca-20050819120601-58525b75283a9c1c
Initial greedy fetch work

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
14
14
 
15
15
 
 
16
 
 
17
# TODO: Could probably replace this with something based on Python logging
 
18
# module.
 
19
 
 
20
 
 
21
 
 
22
 
16
23
__copyright__ = "Copyright (C) 2005 Canonical Ltd."
17
24
__author__ = "Martin Pool <mbp@canonical.com>"
18
25
 
45
52
 
46
53
 
47
54
def _write_trace(msg):
48
 
    if _tracefile:
49
 
        _tracefile.write(_logprefix + msg + '\n')
 
55
    if 0:
 
56
        if _tracefile:
 
57
            _tracefile.write(_logprefix + msg + '\n')
50
58
 
51
59
 
52
60
def warning(msg):