These are chat archives for chocolatey/ChocolateyGUI

8th
May 2017
Hitesh
@TechMinder
May 08 2017 14:16
@gep13 @ferventcoder I have noticed that for internal packages ChocolateyGUI shows -1 downloads. Does anyone know how to hide or show proper increments?
Rob Reynolds
@ferventcoder
May 08 2017 14:33
what is your internal server?
depends on what it provides
if your internal is a file share, that sounds right
Hitesh
@TechMinder
May 08 2017 14:59
@ferventcoder it's file server.
@ferventcoder Is there any document or link for creating difference package source?
@ferventcoder where do we store the # of downloads information? is it in file or somewhere else?
Rob Reynolds
@ferventcoder
May 08 2017 16:14
@TechMinder you can't in a file server - see https://chocolatey.org/docs/how-to-host-feed
Hitesh
@TechMinder
May 08 2017 16:14
@ferventcoder Thanks, let me take a look at it.
@ferventcoder does # of downloads work with ProGet? We have ProGet so if it works with ProGet then we can use it.
Rob Reynolds
@ferventcoder
May 08 2017 16:21
That's a great question for Inedo
HTH
Offhand I'm not sure, and I'm adding some updates to that page
Rob Reynolds
@ferventcoder
May 08 2017 21:59
@RichiCoder1 I've made it quite a ways but I can't seem to get the GUI to use debug/verbose like I've requested
wait...
Richard Simpson
@RichiCoder1
May 08 2017 21:59
?
Rob Reynolds
@ferventcoder
May 08 2017 22:00
when it logs it only hits a higher level
asking the question made me realize it might be log4net config
Richard Simpson
@RichiCoder1
May 08 2017 22:00
Chocolatey's logging is a bit black magic to me I'll admit
Rob Reynolds
@ferventcoder
May 08 2017 22:01
I've passed through debug/verbose so that the logging would be set correctly
Richard Simpson
@RichiCoder1
May 08 2017 22:02
@ferventcoder To which one though? Don't forget the service that does 99% of the chatting with Choco is the subprocess.exe
Rob Reynolds
@ferventcoder
May 08 2017 22:02
--- a/Source/ChocolateyGui.Subprocess/ChocolateyService.cs
+++ b/Source/ChocolateyGui.Subprocess/ChocolateyService.cs
@@ -104,7 +104,10 @@ public Task<bool> IsElevated()
                         {
                             config.CommandName = CommandNameType.install.ToString();
                             config.PackageNames = id;
-                            config.Features.UsePackageExitCodes = false;
+                            config.Features.UsePackageExitCodes = false;
+                            config.Debug = true;
+                            config.Verbose = true;
+                            config.Trace = true;
Richard Simpson
@RichiCoder1
May 08 2017 22:03
If that'd work normally, that should work here :)
Rob Reynolds
@ferventcoder
May 08 2017 22:03
It worked
Richard Simpson
@RichiCoder1
May 08 2017 22:04
Ohh, cool! Sorry, I thought you were saying it wasn't
Rob Reynolds
@ferventcoder
May 08 2017 22:04
and when I did a rebase to bring in all the latest code for the GUI
it suddenly stopped working
not sure where or why but was curious if you started limiting what goes out in logs
and why don't you simply allow chocolatey to log to its default location?
Richard Simpson
@RichiCoder1
May 08 2017 22:05
So we can report errors when something fails
Rob Reynolds
@ferventcoder
May 08 2017 22:05
you can add an additional logger
Richard Simpson
@RichiCoder1
May 08 2017 22:05
????
Rob Reynolds
@ferventcoder
May 08 2017 22:05
yeah
Richard Simpson
@RichiCoder1
May 08 2017 22:05
(Can I also point out that having Console Ouput & Logging be the same thing is a little weird xD?)
So how do I add it as an additional logger?
Rob Reynolds
@ferventcoder
May 08 2017 22:06
one sec
Richard Simpson
@RichiCoder1
May 08 2017 22:06
Well, actually, if you want to fix that in that branch and make sure it works :P
I've figured out most of the issues for getting the GUI to work with the licensed module
Richard Simpson
@RichiCoder1
May 08 2017 22:09
He's using SetCustomLogging just like me?
Rob Reynolds
@ferventcoder
May 08 2017 22:09
Possibly
Richard Simpson
@RichiCoder1
May 08 2017 22:09
Yup he is. Our implementation is largely the same
Rob Reynolds
@ferventcoder
May 08 2017 22:12
Will check to be sure
Richard Simpson
@RichiCoder1
May 08 2017 22:12
Hmm. All SubProcess does is stream log messages to the main process. And according to https://github.com/chocolatey/ChocolateyGUI/blob/develop/Source/ChocolateyGui/Bootstrapper.cs#L83 if you're running in debug it's set to the lowest level already
Rob Reynolds
@ferventcoder
May 08 2017 22:12
Not building as Debug
Richard Simpson
@RichiCoder1
May 08 2017 22:13
ChocolateyGUI defaults to Information for Release mode build
Rob Reynolds
@ferventcoder
May 08 2017 22:13
That's probably exactly what I needed right there
Rob Reynolds
@ferventcoder
May 08 2017 23:19
image.png
With GUI and/or the subprocess I tend to run into quite a few errors sometimes.
Richard Simpson
@RichiCoder1
May 08 2017 23:20
I could have sworn I just fixed that bug
Rob Reynolds
@ferventcoder
May 08 2017 23:20
within the last couple of days?
Richard Simpson
@RichiCoder1
May 08 2017 23:21
Yup
Rob Reynolds
@ferventcoder
May 08 2017 23:21
could be
I am in the branch and I just did a rebase a day or so ago
Richard Simpson
@RichiCoder1
May 08 2017 23:21
Trying to polish GUI this week. Please post any issues you hit.