Hi Dale,
Remember some time ago we added #enableLoggingToGemLogFileForSession and related methods? I am trying this simple script on a 3.3.3 stone: #!/bin/bash $GS_HOME/bin/startTopaz $1 -l <<EOF login run Transcript enableLoggingToGemLogFileForSession. Transcript show: 'wtf'. % commit logout exit EOF And then on my stone logs directory: [xx@xx logs]$ grep "wtf" *.log [xx@xx logs]$ The string does gets written in the ObjectLog. But I want to gem file! Thanks in advance, _______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
Mariano, When you run topaz the log file is written to stdout. In order to get a "log file" for a topaz session, you either capture stdout/stderr via output redirection or you can use the topaz `output` to route stdout/stderr to another file ... note that you have to supply the full path when using the `output` command. I would recommend using output redirection when you want to create a log for topaz, because output redirection picks up the startup banner which includes a lot of useful information about the session... Dale On 2/2/17 5:49 AM, Mariano Martinez
Peck via Glass wrote:
_______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
In reply to this post by GLASS mailing list
...oh and logging to the gem log file is enabled by default ... Dale On 2/2/17 5:49 AM, Mariano Martinez
Peck via Glass wrote:
_______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
In reply to this post by GLASS mailing list
On Thu, Feb 2, 2017 at 1:25 PM, Dale Henrichs via Glass <[hidden email]> wrote:
OK, I understand that. But then, why below script: #!/bin/bash $GS_HOME/bin/startTopaz $1 -l <<EOF login run Transcript enableLoggingToGemLogFileForSe Transcript show: 'wtf'. % commit logout exit EOF Does not print 'wtf' in stdout ? See the output: topaz> login [Info]: libssl-3.3.3-64.so: loaded [02/02/2017 13:31:55.942 EST] gci login: currSession 2 rpc gem processId 13381 socket 6 successful login fileformat is now utf8 sourcestringclass is now Unicode16 topaz 2> run Transcript enableLoggingToGemLogFileForSession. Transcript show: 'wtf'. % TranscriptProxy topaz 2> topaz 2> commit Successful commit topaz 2> logout topaz> exit ...finished :: startTopaz debrisDemo_333 -l [quuve@quuveserver1 upgrade]$
_______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
Mariano, It works for me... output below ... When I look at tyour output, I see that you are doing an rpc login: topaz> login
[Info]: libssl-3.3.3-64.so: loaded
[02/02/2017 13:31:55.942 EST]
gci login: currSession 2 rpc gem processId 13381 socket 6
successful login
fileformat is now utf8
sourcestringclass is now Unicode16
so you probably left the `-l` off of the command line .. in the rpc case the logfile is created and then deleted on successful logout ... Dale ----my topaz output ---- topaz> login On 2/2/17 10:32 AM, Mariano Martinez
Peck wrote:
_______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
On Fri, Feb 3, 2017 at 2:54 PM, Dale Henrichs <[hidden email]> wrote:
OK, good spot. It was not that, but related. It seems that in the .topaz ini of the stone I was trying I had the topaz> set gemnetid !tcp@xxx#netldi:debrisDemo_333_ldi#task!gemnetobject On another stone in which I DO NOT set above magic line, the same scripts receives a linked session (it honors -l). So the problem is that if I define the above line in .topazini then the -l argument is completly ignored in `startTopaz`. This looks wrong to me. Of course, if I remove that line from .topazini it does work correctly. Thoughts?
_______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
Looks like a feature of topaz. According to the help text for login: If the gemnetid is set to anything other than '' (null) or Other than that can you think of any other issue? I'm not in the office today, but I'll see if I can find out if this is expected behavior ... Dale On 2/3/17 10:36 AM, Mariano Martinez
Peck wrote:
_______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
On Fri, Feb 3, 2017 at 8:44 PM, Dale Henrichs <[hidden email]> wrote:
Probably there is a reason. But I don't like that behavior at all. I mean, I wanted to keep my netldi info in .topazini just in case I needed RPC in some case. But now I must remove that line because else the -l is ignored and so my logs disappear. I would prefer to let .topazini have whatever info and honor -l argument.
I am not sure I understand your question. Now, for example, this issue [1] means that now all -l are ignored and so all logs are lost?
_______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
Mariano, I've submitted an internal feature request"46671 "add `-L` option to topaz to force a linked login" that when used will do a linked login whether or not there is a gemnetid in the .topazini file ... should be available in 3.4 ... until putting a gemnetid is not a good idea .... I'll have to fiddle with GsDevKit_home ... I think that I will change it to add the gemnetid, but leave it commented out ... Dale On 02/06/2017 06:22 PM, Mariano
Martinez Peck wrote:
_______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
On Tue, Feb 7, 2017 at 1:13 PM, Dale Henrichs <[hidden email]> wrote:
Cool, thanks!
Yes, I think that makes sense...and while commenting that, you could also refer to 46671 as part of the comment and mentioning we may be able to uncomment this in 3.4.
_______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
Free forum by Nabble | Edit this page |