-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The logging functionality is messed up #15511
Comments
It starts with : 2024-03-14 19:09:03.6167|SalesProtalDev |
orchard-tenant-name : SalesProtalDev first the file path should like : fileName="${var:configDir}/logs/${orchard-tenant-name}/orchard-log-${shortdate}.log" There seems to be no problem here, but you mention that this log actually records that it is creating a tenant context. It should only be output under the default tenant However, log files under this path should only record context logs for the subtenant (SalesProtalDev). 2024-03-14 19:09:03.6167|SalesProtalDev|00-0b8c9fce250e53a67da56ccdf9b96010-bd1563b65ec4b0fd-00||OrchardCore.Environment.Shell.ShellHost|DEBUG|Creating shell context for tenant 'sea2' |
Ok, now I understand now that you clarified that SalesProtalDev is not the parent tenant that creates these child tenants. So guessing here that you have tenants like this: default |
Yes, that's exactly right. The screenshot below is a screenshot of the environment on my home computer. The log is for the office computer, but the structure is roughly the same |
The only thing I can see is that we have a tenant scope issue when these logs gets written. |
And the issue seems to be in ShellContextFactory -> CreateShellContextAsync based on the fact that it logged an INFO instead of a DEBUG. |
This should be a lifecycle assignment issue, as the |
relate #15525 |
I'm looking at logs in the child tenant
SalesProtalDev
, but it outputs logs for other tenants:|Creating shell context for tenant 'sea2'
This is my Nlog.config
The text was updated successfully, but these errors were encountered: