New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: PowerShell and GE #199
Comments
hi @eosfor ! |
Hello @yatli, I've updated the call a bit. This part passes the parameters from cmdlet to initialization routine and generates verbose output (in yellow) if (!GlobalState.Instance.IsInitialized)
{
WriteVerbose($"Setting LogDirectory to: {LogDirectory}");
WriteVerbose($"Setting StorageRoot to: {StorageRoot}");
WriteVerbose($"Setting LogEchoOnConsole to: {LogEchoOnConsole}");
WriteVerbose($"Setting LogLevel to: {LogLevel}");
GlobalState.Instance.Initialize(LogDirectory, StorageRoot, LogEchoOnConsole, LogLevel);
} And this part is initialization itself public void Initialize(string LogDirectory, string StorageRoot, bool LogEchoOnConsole, Trinity.Diagnostics.LogLevel LogLevel)
{
if (!_isInitialized )
{
TrinityConfig.LogEchoOnConsole = LogEchoOnConsole;
LoggingConfig.Instance.LogDirectory = LogDirectory;
LoggingConfig.Instance.LoggingLevel = LogLevel;
StorageConfig.Instance.StorageRoot = StorageRoot;
Global.Initialize();
LambdaDSL.SetDialect("MAG", "StartFrom", "VisitNode", "FollowEdge", "Action");
FanoutSearchModule.SetQueryTimeout(-1);
TrinityServer server = new TrinityServer();
server.RegisterCommunicationModule<FanoutSearchModule>();
server.Start();
_isInitialized = true;
}
} And here is the output. As you can see it still outputs stuff to a console for some reason. |
Hmm, I think the options are flushed by initialization. I'll look into it shortly. |
This is how it is happening |
Looking into this now. |
@eosfor could you please pull |
Sure @yatli, will do and let you know |
@yatli, it works better now However, there is an output left (marked on a screeshot), generated by this call: |
Uh oh, this is probably from the storage composition module. It must be another Console.WriteLine... Will fix this really soon! cc @thautwarm |
@eosfor should be alright now |
Hello colleagues, i'm trying to play around with GE using PowerShell. Actually I'm trying to make a module to work with GE using PowerShell.
So far i got a question. I have the following piece of code, which performs kid of initialization.
However, when this runs as part of PowerShell module i see some noise on the PowerShell console, like this:
What do i do. How can i properly initialize an avoid any output to console? Or control this output?
The text was updated successfully, but these errors were encountered: