mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-13 18:59:18 +02:00
Minor logging improvement
This commit is contained in:
parent
36a0768457
commit
519e574f94
1 changed files with 2 additions and 1 deletions
|
@ -24,13 +24,14 @@ namespace SMBLibrary.Server.SMB2
|
||||||
return new ErrorResponse(request.CommandName, NTStatus.STATUS_FILE_CLOSED);
|
return new ErrorResponse(request.CommandName, NTStatus.STATUS_FILE_CLOSED);
|
||||||
}
|
}
|
||||||
|
|
||||||
state.LogToServer(Severity.Information, "Close: Closing '{0}{1}'", share.Name, openFile.Path);
|
|
||||||
NTStatus closeStatus = share.FileStore.CloseFile(openFile.Handle);
|
NTStatus closeStatus = share.FileStore.CloseFile(openFile.Handle);
|
||||||
if (closeStatus != NTStatus.STATUS_SUCCESS)
|
if (closeStatus != NTStatus.STATUS_SUCCESS)
|
||||||
{
|
{
|
||||||
|
state.LogToServer(Severity.Information, "Close: Closing '{0}{1}' failed. NTStatus: {2}.", share.Name, openFile.Path, closeStatus);
|
||||||
return new ErrorResponse(request.CommandName, closeStatus);
|
return new ErrorResponse(request.CommandName, closeStatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
state.LogToServer(Severity.Information, "Close: Closed '{0}{1}'.", share.Name, openFile.Path);
|
||||||
session.RemoveOpenFile(request.FileId);
|
session.RemoveOpenFile(request.FileId);
|
||||||
CloseResponse response = new CloseResponse();
|
CloseResponse response = new CloseResponse();
|
||||||
if (request.PostQueryAttributes)
|
if (request.PostQueryAttributes)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue