Skip to main content
Solved

Execution from command line sometimes doesn't write data to log file


jstanger
Forum|alt.badge.img+1

I have been running my workspace (which unfortunately I cannot easily share) that uses a number of PythonCallers which each writes to the log file via the FMEObjects calls. What I have found is that when running the workspace from the GUI all the log messages are written to the log file. But when running the workspace from the command line I have found that some installations of FME will log all the details while others will not. Is there some configuration file or command line option that would force FME to record all log messages to the log file?

Best answer by stalknecht

You can configure it in workbench:

View original
Did this help you find an answer to your question?

11 replies

Forum|alt.badge.img
  • July 13, 2017
Can you give more details about the installations that are logging correctly versus the ones that are not?

 

 


jstanger
Forum|alt.badge.img+1
  • Author
  • July 13, 2017
All installations should be Build 16674, which should have been installed as standard from the installer. Are there any more specific details you would like to know about the machines in question?

Forum|alt.badge.img
  • July 13, 2017
jstanger wrote:
All installations should be Build 16674, which should have been installed as standard from the installer. Are there any more specific details you would like to know about the machines in question?
No, I was just wondering if there was different version of FME used.

 


stalknecht
Contributor
Forum|alt.badge.img+19
  • Contributor
  • Best Answer
  • July 13, 2017

You can configure it in workbench:


rylanatsafe
Safer
Forum|alt.badge.img+13
stalknecht wrote:

You can configure it in workbench:

I think this is a great suggestion to verify here!

 

 


rylanatsafe
Safer
Forum|alt.badge.img+13
>What I have found is that when running the workspace from the GUI all the log messages are written to the log file.

 

Do all installations correctly log out, when the workspace is run from the FME Workbench GUI?

 

 


jstanger
Forum|alt.badge.img+1
  • Author
  • July 17, 2017
stalknecht wrote:

You can configure it in workbench:

I have asked regarding this and it appears that they have the exact same configuration set. Also they have tried all possible python interpreter options with no improvement.

jstanger
Forum|alt.badge.img+1
  • Author
  • July 17, 2017
rylanatsafe wrote:
>What I have found is that when running the workspace from the GUI all the log messages are written to the log file.

 

Do all installations correctly log out, when the workspace is run from the FME Workbench GUI?

 

 

With the test data I've been working with the FME workbench does fail due to exceptions being generated in the PythonCallers from bad input data. The debug messages provide the required context for the failure so we need it to output to the log even if "Warning: not all FMESessions that were created were destroyed before shutdown. This may cause instability" is reported.

 


jstanger
Forum|alt.badge.img+1
  • Author
  • July 17, 2017
I have had the client confirm that the Build numbers are the same.

 

They report that the command line console shows the required log information coming from the PythonCaller but these same details don't get written to the log file specified.

rylanatsafe
Safer
Forum|alt.badge.img+13
jstanger wrote:
I have had the client confirm that the Build numbers are the same.

 

They report that the command line console shows the required log information coming from the PythonCaller but these same details don't get written to the log file specified.
Hmm, I may have misunderstood your initial report. The logging is coming from PythonCaller transformers. Is that correct?

 

For FME Server Engines, Python is not typically logged to the Job Log file, rather it is recorded to the fmeprocessmonitorengine.log file. (See this Q&A; Post) That wouldn't explain why some do and some don't.. Please check that log file on FME Server and see if that is where the missing messages are found!

 

 


jstanger
Forum|alt.badge.img+1
  • Author
  • July 18, 2017
rylanatsafe wrote:
Hmm, I may have misunderstood your initial report. The logging is coming from PythonCaller transformers. Is that correct?

 

For FME Server Engines, Python is not typically logged to the Job Log file, rather it is recorded to the fmeprocessmonitorengine.log file. (See this Q&A; Post) That wouldn't explain why some do and some don't.. Please check that log file on FME Server and see if that is where the missing messages are found!

 

 

After the client returned and checked processes related to the FME deployment and execution it was found that they had an issue with their SVN update and had not been correctly updating all FMW files.

 

Indeed the logging was coming from a PythonCaller but with the default logging status of Inform. Therefore, I'm going to accept the answer given because of the possible configuration differences that could have caused the issue.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings