Skip to content

Log message 'Default update channel is “stable”' should be informational or debug not warning #10034

@reetp

Description

@reetp

⚠️ Before submitting, please verify the following: ⚠️

Bug description

On sync the nextcloudcmd logs this warning:

[ warning nextcloud.sync.configfile ]: Default update channel is “stable” because that is the desktop enterprise channel returned by the server.

I was trying to write a log check script to look for errors and warnings that might be a problem to fix but this keeps tripping as a false positive.

This should be either informational or debug, or the ability to suppress it via a config entry. Nothing is 'broken'.

The responsible code is here on the latest client code:

QString ConfigFile::defaultUpdateChannel() const
{
const auto isBranded = Theme::instance()->isBranded();
if (serverHasValidSubscription() && !isBranded) {
if (const auto serverChannel = desktopEnterpriseChannel();
validUpdateChannels().contains(serverChannel)) {
qCWarning(lcConfigFile()) << "Default update channel is" << serverChannel << "because that is the desktop enterprise channel returned by the server.";
return serverChannel;
}
}

Steps to reproduce

Execute the client:

executing nextcloudcmd -u someadmin -p PassKey --uplimit 0 --downlimit 0 -n --non-interactive --path /localpath /remotepath https://server

grep warning /Nextcloud/log/latest.log

05-15 09:03:29:256 [ warning nextcloud.sync.configfile ]: Default update channel is "stable" because that is the desktop enterprise channel returned by the server.

Expected behavior

No 'warning' for this in the log because there are no issues for the client.

It should be informational or debug.

Which files are affected by this bug

src/libsync/configfile.cpp

Operating system

Linux

Which version of the operating system you are running.

Rocky 8

Installation method

Other

Nextcloud Server version

31/32

Nextcloud Desktop Client version

Tested Debian Trixie 3.16.7-1 Forky and 33.0.2-1

Did this occur after an update or on a clean installation?

Clean desktop client installation

Are you using the Nextcloud Server Encryption module?

No

Are you using an external user-backend?

  • Default internal user-backend
  • LDAP or Active Directory
  • SSO - SAML
  • Other

Nextcloud Server logs

05-15 11:14:20:389 [ warning nextcloud.sync.configfile ]:	Default update channel is "stable" because that is the desktop enterprise channel returned by the server.
05-15 11:16:52:108 [ warning nextcloud.sync.configfile ]:	Default update channel is "stable" because that is the desktop enterprise channel returned by the server.
05-15 11:17:23:915 [ warning nextcloud.sync.configfile ]:	Default update channel is "stable" because that is the desktop enterprise channel returned by the server.

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions