Ignore:
Timestamp:
02/11/07 01:11:03 (18 years ago)
Author:
psmith
Message:

cleanup of debug msgs

Location:
branches/home/psmith/restructure/src
Files:
10 edited

Legend:

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

    r76 r84  
    8585               (-1
    8686                (let ((errno (get-errno)))
    87                   (format t "-1 returned from epoll-wait, errno ~A~%" errno)
    8887                  (if (eql errno 4) ;EINTR - interrupted by a system call
    89                       (return nil)
    90                       (error 'poll-error))))
     88                      (return nil)
     89                      (progn
     90                        (format t "-1 returned from epoll-wait, errno:")
     91                        (perror)
     92                        (error 'poll-error)))))
    9193               (return nil)
    9294               (t
  • TabularUnified branches/home/psmith/restructure/src/io/async-fd.lisp

    r74 r84  
    124124(defun write-more (async-fd)
    125125  "Write data from ASYNC-FD's write bytebuffer"
    126   (format-log t "async-fd:write-more - called with ~A~%" async-fd)
     126#+nio-debug  (format-log t "async-fd:write-more - called with ~A~%" async-fd)
    127127  (with-slots (write-fd foreign-write-buffer close-pending) async-fd
    128128#+nio-debug  (format t "async-fd:write-more - foreign-write-buffer b4 flip ~A~%" foreign-write-buffer)
  • TabularUnified branches/home/psmith/restructure/src/io/nio-server.lisp

    r82 r84  
    135135                    (t
    136136                     (let ((async-fd (gethash fd client-hash)))
    137                        (format-log t "IO event ~A on ~A~%" event async-fd)
     137#+nio-debug                    (format-log t "nio-server::start-server - IO event ~A on ~A~%" event async-fd)
    138138                       (unless (null async-fd)
    139139                         (catch 'error-exit
  • TabularUnified branches/home/psmith/restructure/src/nio-logger/nio-logger.lisp

    r82 r84  
    4343
    4444(defun callback(result)
    45   (nio-utils:format-log t "Result of remote-log ~A~%" result))
     45#+nio-debug  (nio-utils:format-log t "Result of remote-log ~A~%" result)
     46)
    4647
    4748
     
    5354  (with-line-from-tailed-file (text filename 1)
    5455    (let ((rpc (format nil "(nio-logger:remote-log \"~A\")" (cl-base64:string-to-base64-string text))))
    55       (nio-utils:format-log t "Toplevel Submitting job~A~%" rpc)
     56#+nio-debug      (nio-utils:format-log t "nio-logger::tail-log Submitting job~A~%" rpc)
    5657      (nio:with-connected-nodes (node)
    57         (nio-utils:format-log t "Toplevel sending ~A to ~A~%" rpc node)
     58#+nio-debug     (nio-utils:format-log t "Toplevel sending ~A to ~A~%" rpc node)
    5859        (nio-yarpc:remote-execute (nio:active-conn node) rpc #'callback)))))
    5960
  • TabularUnified branches/home/psmith/restructure/src/nio-logger/run-logging-client.lisp

    r82 r84  
    2626|#
    2727
    28 (push :nio-debug *features*)
     28;(push :nio-debug *features*)
    2929(require :asdf)
    3030(require :nio-logger)
  • TabularUnified branches/home/psmith/restructure/src/nio-logger/run-logging-server.lisp

    r72 r84  
    2626|#
    2727
    28 (push :nio-debug *features*)
     28;(push :nio-debug *features*)
    2929(require :asdf)
    3030(require :nio-logger)
  • TabularUnified branches/home/psmith/restructure/src/protocol/yarpc/yarpc-client-state-machine.lisp

    r83 r84  
    7777  (let ((ttd (nio-compat:take (job-queue sm) :blocking-call nil)))
    7878    (when ttd
    79       (format-log t "yarpc-client-state-machine:process-outgoing-packet got job ~A ~%" ttd)
     79#+nio-debug      (format-log t "yarpc-client-state-machine:process-outgoing-packet got job ~A ~%" ttd)
    8080      (destructuring-bind (job call-string) ttd
    8181        (setf (gethash (incf +request-id+) (request-map sm)) job)
     
    8383
    8484(defmethod process-incoming-packet ((sm yarpc-client-state-machine) (response method-response-packet))
    85   (format-log t "yarpc-client-state-machine:process-incoming-packet called :sm ~A :packet ~A~%" sm response)
     85#+nio-debug (format-log t "yarpc-client-state-machine:process-incoming-packet called :sm ~A :packet ~A~%" sm response)
    8686  (let* ((*package* (find-package :nio-yarpc))
    8787         (result  (read-from-string (response response)))
    8888         (request-id (request-id response)))
    89     (format-log t "yarpc-client-state-machine:process-incoming-packet :result ~A :request-id ~A~%" result request-id)
    90     (maphash #'(lambda (k v) (format t "~a -> ~a~%" k v)) (request-map sm))
     89#+nio-debug    (format-log t "yarpc-client-state-machine:process-incoming-packet :result ~A :request-id ~A~%" result request-id)
     90;    (maphash #'(lambda (k v) (format t "~a -> ~a~%" k v)) (request-map sm))
    9191    (let ((remote-job (gethash request-id (request-map sm))))
    9292      (funcall (callback remote-job) result))))
     
    9494;Execute the call-string on the remote node and call callback with the result
    9595(defmethod remote-execute ((sm yarpc-client-state-machine) call-string callback)
    96   (format-log t "yarpc-client-state-machine:remote-execute called :sm ~A :call-string ~A :callback ~A~%" sm call-string callback)
     96#+nio-debug  (format-log t "yarpc-client-state-machine:remote-execute called :sm ~A :call-string ~A :callback ~A~%" sm call-string callback)
    9797  (nio-compat:add (job-queue sm) (list (remote-job callback) call-string)))
  • TabularUnified branches/home/psmith/restructure/src/protocol/yarpc/yarpc-packet-factory.lisp

    r82 r84  
    5454            (let* ((packet-request-id (bytebuffer-read-32 buf))
    5555                   (ret-packet (ecase packet-id
    56                                 (0 (progn (format-log t "yarpc-packet-factory:get-packet - got CALL-METHOD-PACKET-ID~%") (call-method-packet (bytebuffer-read-string buf (- packet-length +yarpc-packet-header-size+ +PACKET-REQUEST-ID-SIZE+)) :request-id packet-request-id)))
    57                                 (1 (progn (format-log t "yarpc-packet-factory:get-packet - got METHOD-RESPONSE-PACKET-ID~%") (method-response-packet (bytebuffer-read-string buf (- packet-length +yarpc-packet-header-size+ +PACKET-REQUEST-ID-SIZE+)) :request-id packet-request-id))))))
     56                                (0 (progn
     57#+nio-debug                                  (format-log t "yarpc-packet-factory:get-packet - got CALL-METHOD-PACKET-ID~%")
     58                                     (call-method-packet (bytebuffer-read-string buf (- packet-length +yarpc-packet-header-size+ +PACKET-REQUEST-ID-SIZE+)) :request-id packet-request-id)))
     59                                (1 (progn
     60#+nio-debug                                  (format-log t "yarpc-packet-factory:get-packet - got METHOD-RESPONSE-PACKET-ID~%")
     61                                     (method-response-packet (bytebuffer-read-string buf (- packet-length +yarpc-packet-header-size+ +PACKET-REQUEST-ID-SIZE+)) :request-id packet-request-id))))))
    5862              (compact buf)
    5963              #+nio-debug  (format-log t "yarpc-packet-factory:get-packet - after compact ~%~A~%" buf)
  • TabularUnified branches/home/psmith/restructure/src/protocol/yarpc/yarpc-state-machine.lisp

    r82 r84  
    6060
    6161(defun run-job(&key (blocking t))
    62   (format-log t "yarpc-state-machine:run-job - Server toplevel waiting for job~%")
     62#+nio-debug  (format-log t "yarpc-state-machine:run-job - Server toplevel waiting for job~%")
    6363  (let ((server-job (nio-compat:take nio-yarpc:job-queue :blocking-call blocking)))
    6464    (when server-job
    6565      (destructuring-bind (job request-id result-queue) server-job
    66         (format-log t "yarpc-state-machine:run-job - Server received job ~A~%" job)
     66#+nio-debug     (format-log t "yarpc-state-machine:run-job - Server received job ~A~%" job)
    6767        (nio-compat:add result-queue (list request-id (nio-yarpc:execute-call job)))))))
    6868
    6969
    7070(defmethod process-outgoing-packet((sm yarpc-state-machine))
    71   (format-log t "yarpc-state-machine:process-outgoing-packet - called, polling the results-queue ~%" )
     71#+nio-debug  (format-log t "yarpc-state-machine:process-outgoing-packet - called, polling the results-queue ~%" )
    7272  (let ((server-job (nio-compat:take (result-queue sm) :blocking-call nil)))
    7373    (when server-job
    7474      (destructuring-bind (request-id result) server-job
    75         (format-log t "yarpc-state-machine:process-outgoing-packet - got :request-id ~A result ~A ~%" request-id result)
     75#+nio-debug     (format-log t "yarpc-state-machine:process-outgoing-packet - got :request-id ~A result ~A ~%" request-id result)
    7676        (method-response-packet result :request-id request-id)))))
    7777
    7878;Process a call method packet by placing it in the job-queue
    7979(defmethod process-incoming-packet ((sm yarpc-state-machine) (call call-method-packet))
    80   (format-log t "yarpc-state-machine:process-incoming-packet - called :sm ~A :packet ~A~%" sm call)
     80#+nio-debug  (format-log t "yarpc-state-machine:process-incoming-packet - called :sm ~A :packet ~A~%" sm call)
    8181  (nio-compat:add job-queue (list (call-string call) (request-id call) (result-queue sm)))
    8282  (when +process-jobs-inline+ (run-job :blocking nil)))
     
    108108      (let* ((rpc-call-list (read-from-string call-string ))
    109109             (fn (member (symbol-function (first rpc-call-list)) *remote-fns* )))
    110         (format-log t "yarpc-state-machine:execute-call - fn ~A authorised? : ~A~%" (symbol-function (first rpc-call-list)) fn)
     110#+nio-debug     (format-log t "yarpc-state-machine:execute-call - fn ~A authorised? : ~A~%" (symbol-function (first rpc-call-list)) fn)
    111111        (if fn
    112112            (apply (first rpc-call-list) (rest rpc-call-list))
  • TabularUnified branches/home/psmith/restructure/src/statemachine/state-machine.lisp

    r78 r84  
    6262             (buffer-too-small-error (read-err)
    6363               (if (recommend-buffer-size sm :read (recommended-size read-err))
     64                   (progn
    6465                   (format-log t "resized incomming buffer ~A~%"foreign-read-buffer)
     66                     nil)
    6567                   (error 'not-implemented-yet-read-resize-failure))))))
    6668      (format-log t "state-machine::process-read - incoming packet: ~A~%" incoming-packet)
Note: See TracChangeset for help on using the changeset viewer.