-
Notifications
You must be signed in to change notification settings - Fork 48
Correct way to access log files (or using the invokeGet function) #22
Comments
As far as I know neither the Too bad this package (understandably) forces the use of While typing this I realized the logs are the only place where this is going to work, it might be a smarter idea to just add 2 custom functions to only show the log files instead of allowing all commands. |
Actually it shouldn't be that hard to tunnel 'regular' requests through there, but in all honesty this was indeed never an intended use case. In practice it would be trivial to open up the underlying connectivity functions - if we make The reason I never did that in the first place is that exposing the connection part of the API, which is really well hidden right now, implicitly makes it something that has to be consistently maintained. While in all honesty the DirectAdmin API is not only a huge fricking mess right now that cost me a ton of headaches to wrap reliably (see these 2 functions...), but DirectAdmin is also currently undergoing major changes to its internal workings, which I heavily suspect includes cleaning up the mess they call an API right now. So yeah, kinda torn on how to approach this hehe. Open to suggestions, including pull requests, but expect discussion as I do intend to keep the core project as clean and architecturally sane as possible. |
I don't think exposing the getConnection() function is required, because as I already said the log command is the only place where this would work. Because that page doesn't include any html or css.
I don't think they even touched the API, they are only talking about a new skin.
I understand, thats the reason why I requested some feedback. 😄 I'm not statistied with my current solution, I think adding a |
Separate API invocations more clearly from possible other invocations. Refs #22
I just pushed a refactoring change in preparation of better support for this feature. |
On another note: given that https://www.directadmin.com/features.php?id=1360 is listed as "unfinished" and upcoming for 1.502 (current is 1.501) - should we even bother right now with this? |
Funny - it's currently at "unfinished" still for 1.514.... |
Hi everyone,
I have been trying to access the log files of a domain for a while now, but since there is no existing function for it I'm using the invokeGet function. However it looks like either the request isn't being executed correctly or I'm using the wrong function.
A bit of code, I tried the
SHOW_LOG
command taken from the URL but also theLOG_VIEWER
taken from the DA website. (https://www.directadmin.com/features.php?id=1360) Both return the same result.I'm not sure if I this is related to the DirectAdmin API or this package, but I'm hoping someone can help me. :)
The text was updated successfully, but these errors were encountered: