Ignore:
Timestamp:
01/19/07 00:11:08 (18 years ago)
Author:
psmith
Message:

Moved verbose messages to nio-debug

Location:
branches/home/psmith/restructure/src
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified branches/home/psmith/restructure/src/buffer/buffer.lisp

    r41 r44  
    160160(defmethod bytebuffer-write-vector((bb byte-buffer) vec)
    161161  :documentation "Returns number of bytes written to bytebuffer"
    162   (format t "bytebuffer-write-vector - called with ~A ~A"bb vec)
     162#+nio-debug    (format t "bytebuffer-write-vector - called with ~A ~A"bb vec)
    163163;  (if (> (remaining bb) 0)
    164164;      0
     
    166166;       (clear bb)
    167167        (let ((bytes-written (cffi:mem-write-vector vec (buffer-buf bb) :unsigned-char (length vec) (buffer-position bb))))
    168           (format t "bytebuffer-write-vector -  byteswritten: ~A~%" bytes-written)
     168#+nio-debug       (format t "bytebuffer-write-vector -  byteswritten: ~A~%" bytes-written)
    169169          (inc-position bb bytes-written)
    170170          bytes-written)))
  • TabularUnified branches/home/psmith/restructure/src/compat/nio-compat-package.lisp

    r39 r44  
    3434             ;;concurrent-queue
    3535             concurrent-queue add take
     36             
     37             ;;utils
     38             get-readable-time
    3639             ))
  • TabularUnified branches/home/psmith/restructure/src/compat/nio-compat.asd

    r39 r44  
    88                 (:file "errno" :depends-on ("nio-compat-package"))
    99                 (:file "concurrent-queue" :depends-on ("nio-compat-package"))
     10                 (:file "utils" :depends-on ("nio-compat-package"))
    1011                 )
    1112
  • TabularUnified branches/home/psmith/restructure/src/io/async-fd.lisp

    r41 r44  
    111111(defun read-more (state-machine)
    112112  (with-slots (foreign-read-buffer read-fd) state-machine
    113   (format t "read-more called with ~A~%" state-machine)
     113#+nio-debug  (format t "read-more called with ~A~%" state-machine)
    114114
    115115#+nio-debug      (format t "read-more - calling read() into ~A~%" foreign-read-buffer)
  • TabularUnified branches/home/psmith/restructure/src/io/nio-server.lisp

    r41 r44  
    9191      (handler-bind ((poll-error #'(lambda (cond)
    9292                                     (declare (ignore cond))
    93                                      (format t "Poll-error, exiting..~%")
     93                                     (format t "Poll-error (errno ~A), exiting..~%" (get-errno))
    9494                                     (throw 'poll-error-exit nil))))
    9595       
  • TabularUnified branches/home/psmith/restructure/src/protocol/yarpc/yarpc-packet-factory.lisp

    r37 r44  
    6060
    6161(defmethod write-bytes((packet call-method-packet) buf)
    62   (format t "yarpc-packet-factory:write-bytes - writing ~A to ~A~%" packet buf)
    63 ;  (nio-buffer:flip buf)
     62#+nio-debug  (format t "yarpc-packet-factory:write-bytes - writing ~A to ~A~%" packet buf)
    6463  (nio-buffer:bytebuffer-write-vector buf #(#x0))
    6564  (nio-buffer:bytebuffer-write-string buf (call-string packet))
    66   (format t "yarpc-packet-factory:write-bytes - written ~A~%" buf)  )
     65#+nio-debug    (format t "yarpc-packet-factory:write-bytes - written ~A~%" buf) 
     66)
    6767 
    6868
     
    7878
    7979(defmethod write-bytes((packet method-response-packet) buf)
    80   (format t "yarpc-packet-factory:write-bytes - writing ~A to ~A~%" packet buf)
     80#+nio-debug    (format t "yarpc-packet-factory:write-bytes - writing ~A to ~A~%" packet buf)
    8181  (nio-buffer:bytebuffer-write-vector buf #(#x1))
    8282  (nio-buffer:bytebuffer-write-string buf (write-to-string (response packet)))
    83   (format t "yarpc-packet-factory:write-bytes - written ~A~%" buf)  )
     83#+nio-debug    (format t "yarpc-packet-factory:write-bytes - written ~A~%" buf) 
     84)
  • TabularUnified branches/home/psmith/restructure/src/statemachine/state-machine.lisp

    r41 r44  
    5858  (with-slots (foreign-read-buffer) sm
    5959    (let ((incoming-packet (get-packet (get-packet-factory sm) foreign-read-buffer)))
    60       (format t "state-machine::process-read - incoming packet: ~A~%" incoming-packet)
     60      (format t "~A state-machine::process-read - incoming packet: ~A~%" (nio-compat:get-readable-time) incoming-packet)
    6161      (when incoming-packet
    6262          (when (not (process-incoming-packet sm incoming-packet))
     
    6868  (with-slots (foreign-write-buffer) sm
    6969  (let ((outgoing-packet (process-outgoing-packet sm)))
    70     (format t "state-machine::process-write - outgoing packet: ~A~%" outgoing-packet)
     70    (format t "~A state-machine::process-write - outgoing packet: ~A~%" (nio-compat:get-readable-time) outgoing-packet)
    7171    (when outgoing-packet (write-bytes outgoing-packet foreign-write-buffer)))))
    7272
Note: See TracChangeset for help on using the changeset viewer.