Discussion:
auto creating a log file on Windows
Dirk Hohndel
2018-09-03 15:12:37 UTC
Permalink
Lubomir,

In commit 0c74f7a2c8 you added a feature to automatically create a log file
on Windows when started from a shortcut. I was just going to ask a user to
send me that log file but realized that I didn't know where it was in the file
system. So I tried this and I cannot find it...

Can you help?

Thanks

/D
Lubomir I. Ivanov
2018-09-03 15:26:51 UTC
Permalink
Post by Dirk Hohndel
Lubomir,
In commit 0c74f7a2c8 you added a feature to automatically create a log file
on Windows when started from a shortcut. I was just going to ask a user to
send me that log file but realized that I didn't know where it was in the file
system. So I tried this and I cannot find it...
Can you help?
the log files should be written in the folder where subsurface.exe is.
we install Subsurface in "C:\Program Files (x86)\Subsurface" by
default and the log files are created there for me on each run.

i can't seem to find this discussion with the user in the forum or the
mailing list.

lubomir
--
Dirk Hohndel
2018-09-03 15:31:22 UTC
Permalink
Post by Lubomir I. Ivanov
Post by Dirk Hohndel
Lubomir,
In commit 0c74f7a2c8 you added a feature to automatically create a log file
on Windows when started from a shortcut. I was just going to ask a user to
send me that log file but realized that I didn't know where it was in the file
system. So I tried this and I cannot find it...
Can you help?
the log files should be written in the folder where subsurface.exe is.
we install Subsurface in "C:\Program Files (x86)\Subsurface" by
default and the log files are created there for me on each run.
I tried that. Hmm. Nope, not there.
Post by Lubomir I. Ivanov
i can't seem to find this discussion with the user in the forum or the
mailing list.
Because I haven't responded, yet. I wanted to make sure I know what
to tell them.

Dennis Arreborg / Cloud sync problem. Incorrect header signature

I was hoping to get a full log from him

/D
Lubomir I. Ivanov
2018-09-03 15:49:06 UTC
Permalink
Post by Dirk Hohndel
Post by Lubomir I. Ivanov
Post by Dirk Hohndel
Lubomir,
In commit 0c74f7a2c8 you added a feature to automatically create a log file
on Windows when started from a shortcut. I was just going to ask a user to
send me that log file but realized that I didn't know where it was in the file
system. So I tried this and I cannot find it...
Can you help?
the log files should be written in the folder where subsurface.exe is.
we install Subsurface in "C:\Program Files (x86)\Subsurface" by
default and the log files are created there for me on each run.
I tried that. Hmm. Nope, not there.
do you happen to have installed subsurface with an administrator
account, but run it as a regular user?
if this is a permission issue, it can be verified if you try to just
create a TXT file in the subsurface.exe folder with the regular user
and see if it works.

a possible fix for that would be to always write in the user folder,
although i think the problem here is something else.

is antivirus software running?
i've seen AVs blocking the creation of log files before.

lubomir
--
Dirk Hohndel
2018-09-03 16:09:25 UTC
Permalink
Post by Lubomir I. Ivanov
Post by Dirk Hohndel
Post by Lubomir I. Ivanov
Post by Dirk Hohndel
Lubomir,
In commit 0c74f7a2c8 you added a feature to automatically create a log file
on Windows when started from a shortcut. I was just going to ask a user to
send me that log file but realized that I didn't know where it was in the file
system. So I tried this and I cannot find it...
Can you help?
the log files should be written in the folder where subsurface.exe is.
we install Subsurface in "C:\Program Files (x86)\Subsurface" by
default and the log files are created there for me on each run.
I tried that. Hmm. Nope, not there.
do you happen to have installed subsurface with an administrator
account, but run it as a regular user?
I think that's the default on most systems these days. You elevate your
rights to admin in order to install software, but then you run it without
those admin rights.
Post by Lubomir I. Ivanov
if this is a permission issue, it can be verified if you try to just
create a TXT file in the subsurface.exe folder with the regular user
and see if it works.
Correct, I get Access Denied - as I should.
Post by Lubomir I. Ivanov
a possible fix for that would be to always write in the user folder,
although i think the problem here is something else.
is antivirus software running?
i've seen AVs blocking the creation of log files before.
No, I don't think that's it. I think we should create the log file in
AppData\Local\Subsurface

/D
Lubomir I. Ivanov
2018-09-03 16:16:45 UTC
Permalink
Post by Dirk Hohndel
Post by Lubomir I. Ivanov
Post by Dirk Hohndel
Post by Lubomir I. Ivanov
Post by Dirk Hohndel
Lubomir,
In commit 0c74f7a2c8 you added a feature to automatically create a log file
on Windows when started from a shortcut. I was just going to ask a user to
send me that log file but realized that I didn't know where it was in the file
system. So I tried this and I cannot find it...
Can you help?
the log files should be written in the folder where subsurface.exe is.
we install Subsurface in "C:\Program Files (x86)\Subsurface" by
default and the log files are created there for me on each run.
I tried that. Hmm. Nope, not there.
do you happen to have installed subsurface with an administrator
account, but run it as a regular user?
I think that's the default on most systems these days. You elevate your
rights to admin in order to install software, but then you run it without
those admin rights.
Post by Lubomir I. Ivanov
if this is a permission issue, it can be verified if you try to just
create a TXT file in the subsurface.exe folder with the regular user
and see if it works.
Correct, I get Access Denied - as I should.
Post by Lubomir I. Ivanov
a possible fix for that would be to always write in the user folder,
although i think the problem here is something else.
is antivirus software running?
i've seen AVs blocking the creation of log files before.
No, I don't think that's it. I think we should create the log file in
AppData\Local\Subsurface
ok, i will send a patch ASAP.

lubomir
--

Loading...