Closed klemen-df closed 6 days ago
Flagging for discussion with @vivekjilla @CooperLink
@klemen-df could you please help me by validating the state of this issue? I attempted to reproduce this locally but I was unsuccessful. For my local testing, i generated a dotnet project with an http trigger using func init --docker. Then I copied the two definitions that you have here and tweaked them slightly for my folder structure. I did not receive console logs from either image definition that you provided regardless of the user. I would like to add that you have correctly setup the non-root user for this app
When I added AzureFunctionsJobHost__Logging__Console__IsEnabled=true
to the environment of the image regardless of the user I started to get the expected console logs. This worked for both my root and non-root image definition. This appsetting is added by default to dockerfiles for FunctionApps created as I created mine using func init.
If you are able. Could you please check if you are getting logs from the file definition that starts in root? I believe that you are not getting console logs from that image. Adding the environment variable above should resolve this problem for you . Closing issue will reopen if there are further questions
I have this and it's working:
It's working and in the logs I can clearly see:
Then I transform the image to a non-root:
Then the only logs I see are this 4 lines:
Can't seem to find anything in the logs, no errors...don't know where to look anymore. Any ideas?