Skip to content

Commit

Permalink
Issue GsDevKit#58: fine tune logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dalehenrich committed Dec 8, 2014
1 parent e4de363 commit e29ffe6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ bounceServerForBreakpointHandling
bounceServerAfterSetOrClearBreakpoints: [
self currentServer
ifNotNil: [ :server |
self log info: 'Bounced server, because of set or clear breakpoints.'.
self log
info:
'Bounced server, because of set or clear breakpoints: '
, GsProcess _current _nativeStack printString.
server stop.
self startBasicServerOn: server port ] ]
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,17 @@ service instance-server
startBasicServerOn: port
"start server in current vm."

| server |
| server startMessage |
server := (self serverClass on: port)
delegate: self delegate;
debugMode: self debugMode;
log: self log;
yourself.
startMessage := server printString , ' (native thread: '
, GsProcess _current _nativeStack printString , ')'.
Transcript
cr;
show:
'Starting server: ' , server printString , ' (native thread: '
, GsProcess usingNativeCode printString , ')'.
show: 'Starting server: ' , startMessage.
server start.
self currentServer: server.
self log
debug: [
'started: ' , server printString , ' (native thread: '
, GsProcess usingNativeCode printString , ')' ]
self log debug: 'started: ' , startMessage
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"class" : {
"serverClass" : "dkh 11/29/2014 06:40" },
"instance" : {
"bounceServerForBreakpointHandling" : "dkh 12/07/2014 18:20",
"bounceServerForBreakpointHandling" : "dkh 12/08/2014 14:55",
"breakpointExceptionSet" : "dkh 12/05/2014 15:03",
"breakpointExceptionSet:" : "dkh 12/05/2014 15:03",
"currentServer" : "dkh 12/05/2014 16:39",
Expand All @@ -26,5 +26,5 @@
"logListener:" : "dkh 12/04/2014 09:56",
"logToObjectLog" : "dkh 12/03/2014 12:23",
"logToTranscript" : "dkh 12/03/2014 12:16",
"startBasicServerOn:" : "dkh 12/07/2014 18:35",
"startBasicServerOn:" : "dkh 12/08/2014 14:07",
"startServerOn:" : "dkh 12/07/2014 09:07" } }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
(name 'Zinc-GemStone-Server-Tools-dkh.19' message 'Issue #58: fiddle with logging ... remote breakpoints back on table' id 'd5813371-9583-4269-af84-0dba231131c1' date '12/07/2014' time '18:45:27' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.18' message 'Issue #58: remove some logging' id 'fbb9609a-ca2d-410a-88c3-c452d6690d81' date '12/06/2014' time '15:06:43' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.17' message 'Issue #58: flesh out remote breakpoint work ... cannot switch back to native threads, but for development of servers, it can still be useful ... continue following this thread ...' id '128442d3-dfdb-4e9a-b1cc-d87d146b1a72' date '12/06/2014' time '15:02:55' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.16' message 'Issue #58: make ZnGemServer>>breakpointExceptionSet controllable now ... default is Halt and Breakpoint' id '78777ed1-d6a3-46c7-b7e9-40a1b05b16b6' date '12/05/2014' time '15:05:30' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.15' message 'Issue #58: GemServer class>>handleBreakpointException: moved to ZnGemServerLogSupport, so breakpoing exceptions can be under enableContinuations control .... and breakpointExceptionSet controlled vi ZnGemServer ' id '4b04024b-c0ee-4f7a-8fb3-ad7f25d30e42' date '12/05/2014' time '15:02:48' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.14' message 'Issue #58: tweak ZnGemServer a bit' id '3bdb5967-20df-46a7-81ed-8afd9c04f39b' date '12/04/2014' time '11:19:35' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.13' message 'Issue #58: add ZnLogSupport>>object: ... for dropping an object into the object log...refactor REST tests to allow for testing using remote ZnGemServer and add persistence to ZnExampleStorageRestServerDelegate ... a bit of house cleaning in ZnGemServer' id '9ed1bb9e-f405-4b3b-ae1c-8016c091c850' date '12/04/2014' time '06:38:40' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.12' message 'Issue #58: ZnSingleThreadedServer>>logServerError: to unconditionally log an error: and handleError: for GemStone so we make sure that all errors make it to the log (object log and continuation) AND the gem file .... add gobs of log helper methods to ZnGemServer ... control logging method and filter and whether or not continuations are created for errors from ZnGemServer' id '97e8bdaf-9586-463a-b1a1-f0a091d0b673' date '12/03/2014' time '14:38:57' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.11' message 'switch to ZnTranscriptLogger for debugging' id '808ce940-affd-44b0-b75c-4b7544f80ffa' date '12/03/2014' time '09:59:57' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.10' message 'Issue #58: add transactions to web socket delegate and some logging to understand the odd 30 second delay for the chat delegate' id 'ef0c148c-84ee-4ca0-b783-42f73ef5471e' date '12/02/2014' time '20:37:02' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.9' message 'Issue #58: args to on:do: blocks required in GemStone' id 'f9c11040-764e-4fe5-b17d-3e20aec70d4f' date '12/02/2014' time '15:55:10' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.8' message 'Issue #58: now the 3.x tests should pass' id 'a806216a-1845-4a8a-8d24-f235261cc639' date '11/30/2014' time '21:30:22' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.7' message 'Issue #58: a bit of cleanup to get the 3.x tests to pass(?)' id '479abb60-a604-4381-8746-8285d5265aa9' date '11/30/2014' time '21:19:18' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.6' message 'Issue #58: ZnWebSocketTests>>testEcho test passing ... in debugMode, use ZnObjectLogLogger ... practical to debug ZnGemServer using object log logging and continuations' id '2737e4b6-3600-49ac-ba57-ec8731159dab' date '11/30/2014' time '20:18:41' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.5' message 'Issue #58: tweak recent changes ... and get back to getting tests to pass' id '43bffba2-7b67-49f9-b52c-721b80ee1b66' date '11/30/2014' time '11:54:09' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.4' message 'Issue #58: a log can be specified for an instance of ZnGemServer. By default errors are logged to transcript and continuation commmited to object log.... ' id 'd017e51c-6b6a-404d-b07b-98b00853a012' date '11/30/2014' time '11:19:13' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.3' message 'Issue #58:- always snap off continuation when an error event occurs- add some error handling a bit higher up the zn stack ... to catch application errors as well ... might be able to continue processing without passing error ... still passing at the moment... - ZnTranscriptLogger for all ZnGemServer guys ... might want to make this easier to customize' id 'c402419d-3976-4a02-ba31-be2670595768' date '11/30/2014' time '10:39:47' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.2' message 'Issue #58: start using ZnGemServer based on work done for https://github.com/GsDevKit/gsApplicationTools/issues/2' id 'ac143ad6-d3f3-4abc-a318-dd2f3d0e8e64' date '11/29/2014' time '19:58:22' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.1' message 'Issue #58: add dependency upon GsApplicationTools for Zinc-GemStone-Server-Tools, a new package which holds ZnServerStarter class needed by web socket tests ...' id '437b6f76-4bb6-4ea7-83b0-b5f93128158a' date '11/26/2014' time '13:39:44' author 'dkh' ancestors () stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())
(name 'Zinc-GemStone-Server-Tools-dkh.20' message 'Issue #58: fine tune logging' id '3577aab1-db3d-4ab8-993d-04e58dd0ba47' date '12/08/2014' time '15:01:16' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.19' message 'Issue #58: fiddle with logging ... remote breakpoints back on table' id 'd5813371-9583-4269-af84-0dba231131c1' date '12/07/2014' time '18:45:27' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.18' message 'Issue #58: remove some logging' id 'fbb9609a-ca2d-410a-88c3-c452d6690d81' date '12/06/2014' time '15:06:43' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.17' message 'Issue #58: flesh out remote breakpoint work ... cannot switch back to native threads, but for development of servers, it can still be useful ... continue following this thread ...' id '128442d3-dfdb-4e9a-b1cc-d87d146b1a72' date '12/06/2014' time '15:02:55' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.16' message 'Issue #58: make ZnGemServer>>breakpointExceptionSet controllable now ... default is Halt and Breakpoint' id '78777ed1-d6a3-46c7-b7e9-40a1b05b16b6' date '12/05/2014' time '15:05:30' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.15' message 'Issue #58: GemServer class>>handleBreakpointException: moved to ZnGemServerLogSupport, so breakpoing exceptions can be under enableContinuations control .... and breakpointExceptionSet controlled vi ZnGemServer ' id '4b04024b-c0ee-4f7a-8fb3-ad7f25d30e42' date '12/05/2014' time '15:02:48' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.14' message 'Issue #58: tweak ZnGemServer a bit' id '3bdb5967-20df-46a7-81ed-8afd9c04f39b' date '12/04/2014' time '11:19:35' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.13' message 'Issue #58: add ZnLogSupport>>object: ... for dropping an object into the object log...refactor REST tests to allow for testing using remote ZnGemServer and add persistence to ZnExampleStorageRestServerDelegate ... a bit of house cleaning in ZnGemServer' id '9ed1bb9e-f405-4b3b-ae1c-8016c091c850' date '12/04/2014' time '06:38:40' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.12' message 'Issue #58: ZnSingleThreadedServer>>logServerError: to unconditionally log an error: and handleError: for GemStone so we make sure that all errors make it to the log (object log and continuation) AND the gem file .... add gobs of log helper methods to ZnGemServer ... control logging method and filter and whether or not continuations are created for errors from ZnGemServer' id '97e8bdaf-9586-463a-b1a1-f0a091d0b673' date '12/03/2014' time '14:38:57' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.11' message 'switch to ZnTranscriptLogger for debugging' id '808ce940-affd-44b0-b75c-4b7544f80ffa' date '12/03/2014' time '09:59:57' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.10' message 'Issue #58: add transactions to web socket delegate and some logging to understand the odd 30 second delay for the chat delegate' id 'ef0c148c-84ee-4ca0-b783-42f73ef5471e' date '12/02/2014' time '20:37:02' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.9' message 'Issue #58: args to on:do: blocks required in GemStone' id 'f9c11040-764e-4fe5-b17d-3e20aec70d4f' date '12/02/2014' time '15:55:10' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.8' message 'Issue #58: now the 3.x tests should pass' id 'a806216a-1845-4a8a-8d24-f235261cc639' date '11/30/2014' time '21:30:22' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.7' message 'Issue #58: a bit of cleanup to get the 3.x tests to pass(?)' id '479abb60-a604-4381-8746-8285d5265aa9' date '11/30/2014' time '21:19:18' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.6' message 'Issue #58: ZnWebSocketTests>>testEcho test passing ... in debugMode, use ZnObjectLogLogger ... practical to debug ZnGemServer using object log logging and continuations' id '2737e4b6-3600-49ac-ba57-ec8731159dab' date '11/30/2014' time '20:18:41' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.5' message 'Issue #58: tweak recent changes ... and get back to getting tests to pass' id '43bffba2-7b67-49f9-b52c-721b80ee1b66' date '11/30/2014' time '11:54:09' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.4' message 'Issue #58: a log can be specified for an instance of ZnGemServer. By default errors are logged to transcript and continuation commmited to object log.... ' id 'd017e51c-6b6a-404d-b07b-98b00853a012' date '11/30/2014' time '11:19:13' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.3' message 'Issue #58:- always snap off continuation when an error event occurs- add some error handling a bit higher up the zn stack ... to catch application errors as well ... might be able to continue processing without passing error ... still passing at the moment... - ZnTranscriptLogger for all ZnGemServer guys ... might want to make this easier to customize' id 'c402419d-3976-4a02-ba31-be2670595768' date '11/30/2014' time '10:39:47' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.2' message 'Issue #58: start using ZnGemServer based on work done for https://github.com/GsDevKit/gsApplicationTools/issues/2' id 'ac143ad6-d3f3-4abc-a318-dd2f3d0e8e64' date '11/29/2014' time '19:58:22' author 'dkh' ancestors ((name 'Zinc-GemStone-Server-Tools-dkh.1' message 'Issue #58: add dependency upon GsApplicationTools for Zinc-GemStone-Server-Tools, a new package which holds ZnServerStarter class needed by web socket tests ...' id '437b6f76-4bb6-4ea7-83b0-b5f93128158a' date '11/26/2014' time '13:39:44' author 'dkh' ancestors () stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())
Expand Down

0 comments on commit e29ffe6

Please sign in to comment.