You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now perhaps I understand. Perhaps if the os.Open was an OpenFile with a O_CREATE option it would create the custom file name.
I can make it work by touching the file before running then it choose it. Feels like the flows for selecting the default filename may need to be done before the open.
// Direct internal logging elsewhere
internalLogFile, err := os.Open(ac.internalLogFilename)
if err != nil {
// Could not open the internalLogFilename filename, try using another filename
internalLogFile, err = os.OpenFile("internal.log", os.O_CREATE|os.O_APPEND|os.O_WRONLY, ac.defaultPermissions)
Starting the server like this:
Writes the internal log to a file called internal.log while the ServerInfo() says
: algernon --version
Algernon 1.14.0
The text was updated successfully, but these errors were encountered: