Skip to content

Commit 93501d3

Browse files
committed
Tidy up some logging in the tests
1 parent eebd7ce commit 93501d3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ycmd/completers/completer_utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# Must not import ycm_core here! Vim imports completer, which imports this file.
1919
# We don't want ycm_core inside Vim.
2020
from collections import defaultdict
21-
from ycmd.utils import LOGGER, ToUnicode, re, ReadFile, SplitLines
21+
from ycmd.utils import ToUnicode, re, ReadFile, SplitLines
2222

2323

2424
class PreparedTriggers:
@@ -227,7 +227,6 @@ def GetFileContents( request_data, filename ):
227227
try:
228228
return ToUnicode( ReadFile( filename ) )
229229
except ( OSError, UnicodeError ):
230-
LOGGER.warning( 'Error reading file "%s"', filename )
231230
return ''
232231

233232

ycmd/completers/language_server/language_server_completer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2023,7 +2023,8 @@ def HandleNotificationInPollThread( self, notification ):
20232023
uri = lsp.FilePathToUri( lsp.UriToFilePath( params[ 'uri' ] ) )
20242024
except lsp.InvalidUriException:
20252025
# Ignore diagnostics for URIs we don't recognise
2026-
LOGGER.debug( f'Ignoring diagnostics for unrecognized URI: { uri }' )
2026+
LOGGER.debug(
2027+
f'Ignoring diagnostics for unrecognized URI: { params[ "uri" ] }' )
20272028
return
20282029
with self._latest_diagnostics_mutex:
20292030
self._latest_diagnostics[ uri ] = params[ 'diagnostics' ]

0 commit comments

Comments
 (0)